Skip to content

Commit

Permalink
Fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshan committed Feb 23, 2022
1 parent f012dcf commit 2d14e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8595,7 +8595,7 @@ class DiffChecker {
checkOnlyChangedFiles(file) {
file = file.replace(this.currentDirectory, '');
if (this.changedFiles) {
return this.changedFiles.indexOf(file) > -1;
return this.changedFiles.indexOf(file.substring(1)) > -1;
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/DiffChecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class DiffChecker {
checkOnlyChangedFiles(file) {
file = file.replace(this.currentDirectory, '');
if (this.changedFiles) {
return this.changedFiles.indexOf(file) > -1;
return this.changedFiles.indexOf(file.substring(1)) > -1;
}

return true;
Expand Down

0 comments on commit 2d14e50

Please sign in to comment.