Ticket #2018: jquery.autocomplete.js.diff
File jquery.autocomplete.js.diff, 648 bytes (added by , 15 years ago) |
---|
-
jquery.autocomplete.js
507 507 multiple: false, 508 508 multipleSeparator: ", ", 509 509 highlight: function(value, term) { 510 return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");510 return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(new RegExp("([()[\\]\\\\{}?.+*|^$])","gi"),"\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"); 511 511 }, 512 512 scroll: true, 513 513 scrollHeight: 180,