Fix tested pattern

This commit is contained in:
Matt Bierner 2022-02-28 14:49:29 -08:00
parent fb1af79c7d
commit 76a647c33c
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -9,7 +9,7 @@ var updateGrammar = require('vscode-grammar-updater');
function removeDom(grammar) {
grammar.repository['support-objects'].patterns = grammar.repository['support-objects'].patterns.filter(pattern => {
if (pattern.match && /\b(HTMLElement|ATTRIBUTE_NODE|stopImmediatePropagation)\b/g.test(pattern)) {
if (pattern.match && /\b(HTMLElement|ATTRIBUTE_NODE|stopImmediatePropagation)\b/g.test(pattern.match)) {
return false;
}
return true;