Skip to content

Commit

Permalink
Merge pull request #144 from poofichu/557-bold-text
Browse files Browse the repository at this point in the history
Fix placement of label closing tag
  • Loading branch information
scottnath authored Nov 29, 2016
2 parents d01302d + ac11f9d commit 64b5d7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/form/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ const addRequired = (html, input, index) => {

// Add required text to label
const reLabel = new RegExp('</label>');
render = render.replace(reLabel, `\u00a0<mark class="${level}">required to ${required}</mark>`);
render += '</label>';
render = render.replace(reLabel, `\u00a0<mark class="${level}">required to ${required}</mark></label>`);
}
});

Expand Down

0 comments on commit 64b5d7d

Please sign in to comment.