From d45c417c187fe3dcc35ee7a308e64feebc7b185b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 9 Sep 2014 23:05:58 +0100 Subject: [PATCH] Add deprecation warning for regexp filter operators --- core/modules/filters.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modules/filters.js b/core/modules/filters.js index c9fae0b70..6c49d4e99 100644 --- a/core/modules/filters.js +++ b/core/modules/filters.js @@ -70,6 +70,8 @@ function parseFilterOperation(operators,filterString,p) { rexMatch = rex.exec(filterString.substring(p)); if(rexMatch) { operator.regexp = new RegExp(rexMatch[1], rexMatch[2]); +// Deprecation warning +console.log("WARNING: Filter",operator.operator,"has a deprecated regexp operand",operator.regexp); nextBracketPos = p + rex.lastIndex - 1; } else {