1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fix typo in boolean logic test

This commit is contained in:
Steve-Mcl 2021-10-05 00:06:25 +01:00
parent 8a2e74b3b8
commit 2b12834d53

View File

@ -54,7 +54,7 @@ RED.utils = (function() {
start(src) { start(src) {
if (!src) { return null; } if (!src) { return null; }
let m = src.match(/:/); let m = src.match(/:/);
return m & m.index; // Hint to Marked.js to stop and check for a match return m && m.index; // Hint to Marked.js to stop and check for a match
}, },
tokenizer(src, tokens) { tokenizer(src, tokens) {
if (!src) { return null; } if (!src) { return null; }