We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6247a8 commit 129bba8Copy full SHA for 129bba8
src/lint/checkDiff.ts
@@ -52,7 +52,7 @@ export default function (
52
function flattenPath(files: FileItem[], fileList: string[] = []): string[] {
53
(files || []).forEach(({ path, files: subFiles }) => {
54
const realPath = argv.path ? join(argv.path, path) : path;
55
- fileList.push(realPath.replace(/^\//g, ''));
+ fileList.push(realPath.replace(/^\//, ''));
56
flattenPath(subFiles, fileList);
57
});
58
return fileList;
0 commit comments