Skip to content

Commit

Permalink
Autocomplete: Use $.ui.autocomplete.escapeRegex in combobox demo; Fix…
Browse files Browse the repository at this point in the history
…es #5436 Autocomplete: use $.ui.autocomplete.escapeRegex in combox demo
  • Loading branch information
jzaefferer committed Mar 26, 2010
1 parent b297b3f commit 56a3d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/autocomplete/combobox.html
Expand Up @@ -33,7 +33,7 @@
if (!request.term || matcher.test(text))
return {
id: $(this).val(),
label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + request.term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"),
label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"),
value: text
};
}));
Expand Down

0 comments on commit 56a3d4c

Please sign in to comment.