mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-04-16 15:21:30 +02:00
Update the addAlias/addGlobalAlias calls to fetch the correct capturing groups.
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user