Skip to content

Commit

Permalink
Fix for node 0.12 test (no String.startsWith())
Browse files Browse the repository at this point in the history
  • Loading branch information
daankets committed Feb 8, 2018
1 parent ea6f3a1 commit b2c2b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ var Utility = module.exports = {

//pm2 install username/module
else if(canonic_module_name.indexOf('/') !== -1) {
if (!canonic_module_name.startsWith("@")){
if (canonic_module_name.charAt(0) !== "@"){
canonic_module_name = canonic_module_name.split('/')[1];
}
}
Expand Down

0 comments on commit b2c2b8e

Please sign in to comment.