mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Update the addAlias/addGlobalAlias calls to fetch the correct capturing groups.
This commit is contained in:
parent
7a0fdb9ce9
commit
d823b5f28f
@ -41,10 +41,11 @@ export function parseAliasDeclaration(dec: string, global = false): boolean {
|
||||
if (matches == null || matches.length != 7) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (global) {
|
||||
addGlobalAlias(matches[1], matches[2]);
|
||||
addGlobalAlias(matches[1], matches[4] || matches[6]);
|
||||
} else {
|
||||
addAlias(matches[1], matches[2]);
|
||||
addAlias(matches[1], matches[4] || matches[6]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user