Comparing version 0.1.39 to 0.1.40
@@ -6,4 +6,6 @@ module.exports = function (context) { | ||
for (var i in aliases) { | ||
j = 0, start = 0, found = false; | ||
j = 0, start = 0, found = false, inFirst = false; | ||
while (cmd[j]) { | ||
if (!inFirst && /\w/.test(cmd[j + start])) inFirst = true; | ||
if (inFirst && /\s/.test(cmd[j + start])) break; | ||
if ((cmd[j - 1] === undefined || cmd[j - 1] === ' ' || cmd[j - 1] === ';') && cmd[j + start] === i[start]) { | ||
@@ -10,0 +12,0 @@ start++; |
{ | ||
"name": "jsh", | ||
"version": "0.1.39", | ||
"version": "0.1.40", | ||
"description": "The JavaScript shell interpreter.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -121,2 +121,3 @@ var vm = require('vm'), | ||
expect(substituteAliases(' ll;')).to.equal(' ls -l;'); | ||
expect(substituteAliases('tmux ls')).to.equal('tmux ls'); | ||
}); | ||
@@ -123,0 +124,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141117
2633