mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43: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) {
|
if (matches == null || matches.length != 7) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (global) {
|
if (global) {
|
||||||
addGlobalAlias(matches[1], matches[2]);
|
addGlobalAlias(matches[1], matches[4] || matches[6]);
|
||||||
} else {
|
} else {
|
||||||
addAlias(matches[1], matches[2]);
|
addAlias(matches[1], matches[4] || matches[6]);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user