Visitar URL original
chore: fix lint · unplugin/unplugin-inline-enum@0bc6ad9 · GitHub
Skip to content

Commit 0bc6ad9

Browse files
committed
chore: fix lint
1 parent b5a0ba7 commit 0bc6ad9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/core/enum.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export function scanFiles(options: ScanOptions): string[] {
233233
}
234234

235235
const matcher = picomatch(options.scanPattern)
236-
return [...new Set(stdout.split('\n').map((line) => line.split(':')[0]))]
236+
return [...new Set(stdout.split('\n').map((line) => line.split(':', 1)[0]))]
237237
.map((file) => path.resolve(options.scanDir, file))
238238
.filter((file) => matcher(file))
239239
}

0 commit comments

Comments
 (0)