Skip to content

Commit

Permalink
Merge pull request #2036 from CommanderRoot/refactor/rm-deprecated-su…
Browse files Browse the repository at this point in the history
…bstr
  • Loading branch information
goto-bus-stop authored Mar 28, 2022
2 parents 0ec6e80 + a084959 commit 80d8c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function splitOnColon (f) {
if ((/[a-zA-Z]:[\\/]/.test(f)) && (pos == 1)){
return [f]; // Windows path and colon is part of drive name
} else {
return [f.substr(0, pos), f.substr(pos + 1)];
return [f.slice(0, pos), f.slice(pos + 1)];
}
}
}

0 comments on commit 80d8c1e

Please sign in to comment.