mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-07 17:44:05 -05:00
Fix includes check on jsdoc patching (#169446)
This commit is contained in:
@@ -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