github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 261
    • 30
  • Source
  • Commits
  • Network (30)
  • Graphs
  • Tree: 56a3d4c

click here to add a description

click here to add a homepage

  • Switch Branches (4)
    • bind
    • master
    • panel
    • tooltip
  • Switch Tags (15)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Autocomplete: Use $.ui.autocomplete.escapeRegex in combobox demo; Fixes 
#5436 Autocomplete: use $.ui.autocomplete.escapeRegex in combox demo
jzaefferer (author)
Fri Mar 26 07:59:34 -0700 2010
commit  56a3d4cbff390dcca57d33a9e23325d76f7300f2
tree    d328fd6127eae738167e228ea6147275ce05fe84
parent  b297b3fa6a1e4b6cba735a10ca03a6175f8eda3a
M demos/autocomplete/combobox.html 2 ••
Txt demos/autocomplete/combobox.html
  • View file @ 56a3d4c
... ...
@@ -33,7 +33,7 @@
33 33
                 if (!request.term || matcher.test(text))
34 34
                   return {
35 35
                     id: $(this).val(),
36  
-                    label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + request.term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"),
  36
+                    label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"),
37 37
                     value: text
38 38
                   };
39 39
               }));

0 notes on commit 56a3d4c

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server