r71265 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71264‎ | r71265 | r71266 >
Date:19:59, 18 August 2010
Author:yaron
Status:ok
Tags:
Comment:
Fixed RegExp for matcher
Modified paths:
  • /trunk/extensions/SemanticDrilldown/libs/SemanticDrilldown.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticDrilldown/libs/SemanticDrilldown.js
@@ -16,7 +16,7 @@
1717 .insertAfter(select)
1818 .autocomplete({
1919 source: function(request, response) {
20 - var matcher = new RegExp("\\\b"+ request.term, "i");
 20+ var matcher = new RegExp("\\b" + request.term, "i" );
2121 response(select.children("option").map(function() {
2222 var text = jQuery(this).text();
2323 if (this.value && (!request.term || matcher.test(text)))

Status & tagging log