Update packages/node_modules/@node-red/editor-client/src/js/ui/search.js

Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
Stephen McLaughlin
2022-09-03 21:54:21 +01:00
committed by GitHub
parent 9540cfe749
commit 5f159c1fbd

View File

@@ -108,7 +108,6 @@ RED.search = (function() {
function extractType(val, flags) { function extractType(val, flags) {
// extracts: type:XYZ & type:"X Y Z" // extracts: type:XYZ & type:"X Y Z"
console.log(`extractType(val, flags): val:${val}`)
const regEx = /(?:type):\s*(?:"([^"]+)"|([^" ]+))/; const regEx = /(?:type):\s*(?:"([^"]+)"|([^" ]+))/;
let m let m
while ((m = regEx.exec(val)) !== null) { while ((m = regEx.exec(val)) !== null) {