mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix up linting in search.js
This commit is contained in:
parent
f78bbdc29f
commit
2378e0d961
@ -83,7 +83,7 @@ RED.search = (function() {
|
|||||||
// flagName:XYZ
|
// flagName:XYZ
|
||||||
var regEx = new RegExp("(?:^| )"+flagName+":([^ ]+)(?: |$)");
|
var regEx = new RegExp("(?:^| )"+flagName+":([^ ]+)(?: |$)");
|
||||||
var m
|
var m
|
||||||
while(m = regEx.exec(val)) {
|
while(!!(m = regEx.exec(val))) {
|
||||||
val = val.replace(regEx," ").trim();
|
val = val.replace(regEx," ").trim();
|
||||||
flags[flagName] = flags[flagName] || [];
|
flags[flagName] = flags[flagName] || [];
|
||||||
flags[flagName].push(m[1]);
|
flags[flagName].push(m[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user