Skip to content
Permalink
Browse files

Autocomplete: Use $.ui.autocomplete.escapeRegex in combobox demo; Fix…

…es #5436 Autocomplete: use $.ui.autocomplete.escapeRegex in combox demo
  • Loading branch information
jzaefferer committed Mar 26, 2010
1 parent b297b3f commit 56a3d4cbff390dcca57d33a9e23325d76f7300f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 demos/autocomplete/combobox.html
@@ -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
};
}));

0 comments on commit 56a3d4c

Please sign in to comment.
You can’t perform that action at this time.