Skip to content

Commit 5762c78

Browse files
authored
Use includes instead of indexOf (microsoft#167860)
Use indexOf instead of includes
1 parent 5e74da6 commit 5762c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/emmet/src/selectItemHTML.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function getNextAttribute(document: vscode.TextDocument, selectionStart: number,
140140
}
141141

142142
// Fetch the next word in the attr value
143-
if (attr.value.toString().indexOf(' ') === -1) {
143+
if (!attr.value.toString().includes(' ')) {
144144
// attr value does not have space, so no next word to find
145145
continue;
146146
}

0 commit comments

Comments
 (0)