aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-03-26 19:56:10 -0400
committerScott González <scott.gonzalez@gmail.com>2010-03-26 19:56:10 -0400
commita0f754faf55c1da38125a02aecf304a730f5b0c5 (patch)
tree7237c55e6a0cea65bf140721e1b1ba4d0c4a2213
parent9541bd0bf2ca72795e8f2b2c1d3accc32afcac96 (diff)
parent56a3d4cbff390dcca57d33a9e23325d76f7300f2 (diff)
downloadjquery-ui-a0f754faf55c1da38125a02aecf304a730f5b0c5.tar.gz
jquery-ui-a0f754faf55c1da38125a02aecf304a730f5b0c5.zip
Merge branch 'master' of github.com:jquery/jquery-ui
-rw-r--r--demos/autocomplete/combobox.html2
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
};
}));