From 82c0152e04c3fa7c3514b65694362bff991c7535 Mon Sep 17 00:00:00 2001 From: Astrid Elocson Date: Wed, 14 Jan 2015 20:06:51 +0000 Subject: [PATCH] Fix #1346: Quotes around filter steps --- core/modules/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/filters.js b/core/modules/filters.js index 15dde5f75..4c46b5283 100644 --- a/core/modules/filters.js +++ b/core/modules/filters.js @@ -108,7 +108,7 @@ exports.parseFilter = function(filterString) { p = 0, // Current position in the filter string match; var whitespaceRegExp = /(\s+)/mg, - operandRegExp = /((?:\+|\-)?)(?:(\[)|("(?:[^"])*")|('(?:[^'])*')|([^\s\[\]]+))/mg; + operandRegExp = /((?:\+|\-)?)(?:(\[)|(?:"([^"]*)")|(?:'([^']*)')|([^\s\[\]]+))/mg; while(p < filterString.length) { // Skip any whitespace whitespaceRegExp.lastIndex = p;