1
0
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:
Nick O'Leary 2020-06-16 15:08:30 +01:00
parent f78bbdc29f
commit 2378e0d961
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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]);