mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Use includes instead of indexOf (#167860)
Use indexOf instead of includes
This commit is contained in:
parent
5e74da62da
commit
5762c7821c
|
@ -140,7 +140,7 @@ function getNextAttribute(document: vscode.TextDocument, selectionStart: number,
|
|||
}
|
||||
|
||||
// Fetch the next word in the attr value
|
||||
if (attr.value.toString().indexOf(' ') === -1) {
|
||||
if (!attr.value.toString().includes(' ')) {
|
||||
// attr value does not have space, so no next word to find
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue