diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-03-26 10:59:34 -0400 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-03-26 10:59:34 -0400 |
commit | 56a3d4cbff390dcca57d33a9e23325d76f7300f2 (patch) | |
tree | d328fd6127eae738167e228ea6147275ce05fe84 /demos/autocomplete | |
parent | b297b3fa6a1e4b6cba735a10ca03a6175f8eda3a (diff) | |
download | jquery-ui-56a3d4cbff390dcca57d33a9e23325d76f7300f2.tar.gz jquery-ui-56a3d4cbff390dcca57d33a9e23325d76f7300f2.zip |
Autocomplete: Use $.ui.autocomplete.escapeRegex in combobox demo; Fixes #5436 Autocomplete: use $.ui.autocomplete.escapeRegex in combox demo
Diffstat (limited to 'demos/autocomplete')
-rw-r--r-- | demos/autocomplete/combobox.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index e5dc6c92b..4c6b656a1 100644 --- a/demos/autocomplete/combobox.html +++ b/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 }; })); |