Skip to content

Commit 35d27c0

Browse files
Wolfe-Jamclaude
andcommitted
fix: lint error — remove unnecessary escape in regex
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aa4f61d commit 35d27c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detect/scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function readPythonDeps(dir: string): Record<string, string> {
116116
if (depsMatch) {
117117
const items = depsMatch[1].match(/"([^"]+)"/g) || [];
118118
for (const item of items) {
119-
const name = item.replace(/"/g, '').split(/[>=<\[]/)[0].trim().toLowerCase();
119+
const name = item.replace(/"/g, '').split(/[>=<[]/)[0].trim().toLowerCase();
120120
if (name) {deps[name] = '*';}
121121
}
122122
}

0 commit comments

Comments
 (0)