From c1498b35dd96cddf02800db55bf32b1816b2c8ca Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Fri, 16 Dec 2022 14:36:22 -0800 Subject: [PATCH] Fix includes check on jsdoc patching (#169446) --- extensions/typescript-basics/build/update-grammars.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/typescript-basics/build/update-grammars.mjs b/extensions/typescript-basics/build/update-grammars.mjs index 82f6ab3107a..175f83f0ba3 100644 --- a/extensions/typescript-basics/build/update-grammars.mjs +++ b/extensions/typescript-basics/build/update-grammars.mjs @@ -50,7 +50,7 @@ function removeNodeTypes(grammar) { function patchJsdoctype(grammar) { grammar.repository['jsdoctype'].patterns = grammar.repository['jsdoctype'].patterns.filter(pattern => { - if (pattern.name && pattern.name.indexOf('illegal') >= -1) { + if (pattern.name && pattern.name.includes('illegal')) { return false; } return true;