Removed redundant repetitions of | in alias regex

This commit is contained in:
BB 2022-03-01 20:18:25 +01:00
parent 570b8caf78
commit 6e9990aead

@ -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;