diff --git a/core/modules/filters.js b/core/modules/filters.js index 831ae5780..78f6beacb 100644 --- a/core/modules/filters.js +++ b/core/modules/filters.js @@ -63,7 +63,7 @@ function parseFilterOperation(operators,filterString,p) { nextBracketPos = filterString.indexOf(']',p); break; case '/': // regexp brackets - var rex = /^((?:[^\\\/]*|\\.))*\/(?:\(([mygi]+)\))?/g, + var rex = /^((?:[^\\\/]*|\\.)*)\/(?:\(([mygi]+)\))?/g, rexMatch = rex.exec(filterString.substring(p)); if(rexMatch) { operator.regexp = new RegExp(rexMatch[1], rexMatch[2]);