mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-05 14:34:28 +00:00
Add deprecation warning for regexp filter operators
This commit is contained in:
1 parent
418be0fda8
commit
d45c417c18
1 file changed
+2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user