Skip to content

Commit

Permalink
Fix darylrowland#123. Thanks to @iamgurdip
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiden committed Feb 15, 2015
1 parent c46abde commit 5b77407
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions angucomplete-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
}

function findMatchString(target, str) {
str = str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
var result, matches, re = new RegExp(str, 'i');
if (!target) { return; }
matches = target.match(re);
Expand Down

0 comments on commit 5b77407

Please sign in to comment.