mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-05 15:36:22 +01:00
Fix includes check on jsdoc patching (#169446)
This commit is contained in:
1 parent
d74acc2714
commit
c1498b35dd
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user