Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
theJian committed Sep 12, 2016
1 parent 4431258 commit 232206c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function checkFileExist (dir) {
fs.accessSync(dir , fs.F_OK);
return true;
} catch (e) {
return false
return false;
}
}

Expand All @@ -41,7 +41,7 @@ function analyseDir (dir) {
// [4] filename if it doesn't have extension, otherwise undefined
let filenameFrags = filenameReg.exec(filename);

// move filename[4] to filename[2] is filename[2] is undefined
// move filename[4] to filename[2] if filename[2] is undefined
filenameFrags[2] = filenameFrags[2] || filenameFrags[4];

// remove original name, all index will reduce 1
Expand Down

0 comments on commit 232206c

Please sign in to comment.