Skip to content

Commit cde30a5

Browse files
committed
fix: regexp
1 parent 2e6c25c commit cde30a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/svelte-kit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function isKitPageComponent(context: RuleContext): boolean {
2727
return (
2828
filePath.startsWith(path.join(projectRootDir, routes)) &&
2929
// MEMO: check only `+` and file extension for maintainability
30-
Boolean(/\+.+\.svelte/.test(fileName))
30+
Boolean(/^\+.+\.svelte$/.test(fileName))
3131
)
3232
}
3333

0 commit comments

Comments
 (0)