Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(highlight): adds missing characters to sanitize method
Browse files Browse the repository at this point in the history
Closes #2292
  • Loading branch information
Robert Messerle committed Apr 24, 2015
1 parent 6372111 commit ef0dce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/js/highlightController.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function MdHighlightCtrl ($scope, $element, $interpolate) {

function sanitize (term) {
if (!term) return term;
return term.replace(/[\*\[\]\(\)\{\}\\\^\$]/g, '\\$&');
return term.replace(/[\\\^\$\*\+\?\.\(\)\|\{\}\[\]]/g, '\\$&');
}

function getRegExp (text, flags) {
Expand Down

0 comments on commit ef0dce0

Please sign in to comment.