Skip to content

Commit

Permalink
🐛 actual fix to spacing and repeat issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Tilden committed Nov 14, 2016
1 parent b7a3f10 commit 8dc77ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/form/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ const addRequired = (html, input, index) => {

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

Expand Down

0 comments on commit 8dc77ea

Please sign in to comment.