From 6e9990aeada58523ca166db11f0b39221e7a751e Mon Sep 17 00:00:00 2001 From: BB Date: Tue, 1 Mar 2022 20:18:25 +0100 Subject: [PATCH] Removed redundant repetitions of | in alias regex --- src/Alias.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Alias.ts b/src/Alias.ts index b03b3c400..59375c3e7 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 != 7) { return false;