Skip to content

Commit 129bba8

Browse files
Update src/lint/checkDiff.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent c6247a8 commit 129bba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lint/checkDiff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function (
5252
function flattenPath(files: FileItem[], fileList: string[] = []): string[] {
5353
(files || []).forEach(({ path, files: subFiles }) => {
5454
const realPath = argv.path ? join(argv.path, path) : path;
55-
fileList.push(realPath.replace(/^\//g, ''));
55+
fileList.push(realPath.replace(/^\//, ''));
5656
flattenPath(subFiles, fileList);
5757
});
5858
return fileList;

0 commit comments

Comments
 (0)