/
usr
/
lib
/
node_modules
/
pm2
/
node_modules
/
semver
/
internal
/
/usr/lib/node_modules/pm2/node_modules/semver/internal
mkdir
upload
Name
Size
Mode
Actions
constants.js
468
0644
edit
dl
rm
debug.js
226
0644
edit
dl
rm
identifiers.js
409
0644
edit
dl
rm
parse-options.js
401
0644
edit
dl
rm
re.js
6662
0644
edit
dl
rm
Edit:
/usr/lib/node_modules/pm2/node_modules/semver/internal/identifiers.js
(409B)
const numeric = /^[0-9]+$/ const compareIdentifiers = (a, b) => { const anum = numeric.test(a) const bnum = numeric.test(b) if (anum && bnum) { a = +a b = +b } return a === b ? 0 : (anum && !bnum) ? -1 : (bnum && !anum) ? 1 : a < b ? -1 : 1 } const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) module.exports = { compareIdentifiers, rcompareIdentifiers }
Save
cmd:
run