Skip to content

Commit 7987658

Browse files
authored
Merge pull request #12 from dandehoon/fix/token [patch]
fix: remove fallback for empty regex patterns in findToken function
2 parents 0b2a85e + 4700a4a commit 7987658

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/finders/token.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ export function findToken(
3939
}
4040
}
4141

42-
// If no valid patterns, use fallback
43-
if (patterns.length === 0) {
44-
patterns.push(/[^\s[\]{}()"'`]+/);
45-
}
46-
4742
for (const pattern of patterns) {
4843
const wordRange = document.getWordRangeAtPosition(currentPosition, pattern);
4944
if (wordRange) {

0 commit comments

Comments
 (0)