use matches instead of regexpMatch

This commit is contained in:
Erik Krogh Kristensen
2021-11-18 15:41:25 +01:00
parent 6c2713dd8b
commit 011fc20963
11 changed files with 16 additions and 16 deletions

View File

@@ -18,5 +18,5 @@ where
// but exclude attribute top-levels: `<a href="javascript:'some-attribute-string'">`
not d.getParent() instanceof CodeInAttribute and
// exclude babel generated directives like "@babel/helpers - typeof".
not d.getDirectiveText().prefix(14) = "@babel/helpers"
not d.getDirectiveText().matches("@babel/helpers%")
select d, "Unknown directive: '" + truncate(d.getDirectiveText(), 20, " ... (truncated)") + "'."