We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 776c898 commit 973d15cCopy full SHA for 973d15c
src/index.ts
@@ -628,6 +628,6 @@ function isNameSafe(name: string) {
628
}
629
630
function isNextNameSafe(token: Token | undefined) {
631
- if (token?.type !== "text") return true;
+ if (!token || token.type !== "text") return true;
632
return !ID_CONTINUE.test(token.value[0]);
633
0 commit comments