INNER CODE UNIT · TypeScript
regexBrackets
tim-koehler/Helm-Intellisense · src/Commands/LintCommand.ts:107
const regexBrackets = /\{\{-? ?(else )?if .*?\}\}/g;
if (regexBrackets.exec(line) !== null) {
continue;
}
const words = line.split(' ');
let insideComment = false;
for (let word of words) {
if (word.startsWith('*/')) {
insideComment = false;
continue;
} else if (word.startsWith('/*')) {
insideComment = true;
continue;
}
if (insideComment) {