Skip to content

Commit 0d4427c

Browse files
committed
Issue #2453 - Changes regex to fix progressive label filtering
1 parent baa490e commit 0d4427c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webcompat/static/js/lib/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ issues.CategoryEditorView = Backbone.View.extend({
105105
}, 100);
106106

107107
var escape = function(s) {
108-
return s.replace(/[-/\\^$*+?:.()|[\]{}]/g, "\\$&");
108+
return s.replace(/[-&:/.\s()]/g, "\\$&");
109109
};
110110
var re = new RegExp("^" + escape(e.target.value), "i");
111111
var toHide = _.filter(this.model.toArray(), function(label) {

0 commit comments

Comments
 (0)