mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-22 20:52:58 +01:00
Ability to launch unit tests using carma and webpack
This commit is contained in:
@@ -8,15 +8,16 @@ export default {
|
||||
getArgs: function (hashValue) {
|
||||
|
||||
var decodedHash = this.decodeHash(hashValue),
|
||||
args = [];
|
||||
args = { commands: [] };
|
||||
|
||||
splitHashList(decodedHash).forEach(function(value) {
|
||||
// Support for -debur or -notrack properties
|
||||
if(/^\-[a-zA-Z]+$/.test(value)) {
|
||||
args[value.substr(1)] = true;
|
||||
return;
|
||||
}
|
||||
|
||||
args.push(value);
|
||||
args.commands.push(value);
|
||||
});
|
||||
|
||||
return Object.freeze(args);
|
||||
|
||||
Reference in New Issue
Block a user