From 6a9f6c05ecc8efd79c1add10dbd5b53b8dea9c04 Mon Sep 17 00:00:00 2001 From: Robert Klebes Date: Sun, 26 Dec 2021 14:14:37 -0500 Subject: [PATCH] Update parseAliasDeclaration to match single quote - Matches foo="bar" and foo='bar' - Does not match foo="bar' or foo='bar" --- src/Alias.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Alias.ts b/src/Alias.ts index b80aed6a3..238c531e0 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;