mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
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:
parent
9540cfe749
commit
5f159c1fbd
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user