diff --git a/src/Alias.ts b/src/Alias.ts index 73029f69b..b80aed6a3 100644 --- a/src/Alias.ts +++ b/src/Alias.ts @@ -36,7 +36,7 @@ export function printAliases(): void { // Returns true if successful, false otherwise export function parseAliasDeclaration(dec: string, global = false): boolean { - const re = /^([_|\w|!|%|,|@]+)="(.+)"$/; + const re = /^([\w|!|%|,|@|-]+)="(.+)"$/; const matches = dec.match(re); if (matches == null || matches.length != 3) { return false;