command.js: fixing bad path syntax on shell.execute

This commit is contained in:
minjaesong
2020-11-06 09:58:03 +09:00
parent 541e8245bf
commit 0000311e07
5 changed files with 61 additions and 9 deletions

View File

@@ -46,6 +46,16 @@ if (!String.prototype.startsWith) {
}
});
}
if (!String.prototype.endsWith) {
Object.defineProperty(String.prototype, 'endsWith', {
value: function(search, this_len) {
if (this_len === undefined || this_len > this.length) {
this_len = this.length;
}
return this.substring(this_len - search.length, this_len) === search;
}
});
}
if (!Array.prototype.filter){
Array.prototype.filter = function(func, thisArg) {
'use strict';