delint
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
6328a60301
commit
5c57b9ab9b
4 changed files with 7 additions and 7 deletions
|
@ -64,14 +64,14 @@ export default class AutocompleteProvider {
|
|||
commandRegex = this.forcedCommandRegex || /\S+/g;
|
||||
}
|
||||
|
||||
if (commandRegex == null) {
|
||||
if (commandRegex === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
commandRegex.lastIndex = 0;
|
||||
|
||||
let match;
|
||||
while ((match = commandRegex.exec(query)) != null) {
|
||||
while ((match = commandRegex.exec(query)) !== null) {
|
||||
const start = match.index;
|
||||
const end = start + match[0].length;
|
||||
if (selection.start <= end && selection.end >= start) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue