Skip to content

Commit

Permalink
Ignore comma for bolding
Browse files Browse the repository at this point in the history
  • Loading branch information
boxadesign committed May 5, 2020
1 parent 3cacb86 commit aea7373
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export default class TypeaheadUI {
}

emboldenMatch(string, query) {
let reg = new RegExp(this.escapeRegExp(query).split('').join('\\s*'), 'gi');
let reg = new RegExp(this.escapeRegExp(query).split('').join('[\\s,]*'), 'gi');
return string.replace(reg, '<strong>$&</strong>');
}

Expand Down

0 comments on commit aea7373

Please sign in to comment.