summaryrefslogtreecommitdiff
path: root/std/flags/mod.ts
diff options
context:
space:
mode:
authorThe Wizard Bear <42446683+TheWizardBear@users.noreply.github.com>2020-11-02 22:17:26 +0000
committerGitHub <noreply@github.com>2020-11-02 23:17:26 +0100
commit43d4978ceabb9d5879ab8d86bbf0f1ee551f9500 (patch)
tree5145c0215ff4ef137022ebdcd857ddc8656cce66 /std/flags/mod.ts
parent93deefcae221e03358dd259f1958930331654afc (diff)
fix(std/flags): Fix parse incorrectly parsing alias flags with equals signs in the value #8136 (#8216)
Diffstat (limited to 'std/flags/mod.ts')
-rw-r--r--std/flags/mod.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/flags/mod.ts b/std/flags/mod.ts
index 09b5afa8a..05aeff6f2 100644
--- a/std/flags/mod.ts
+++ b/std/flags/mod.ts
@@ -277,7 +277,7 @@ export function parse(
}
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
- setArg(letters[j], next.split("=")[1], arg);
+ setArg(letters[j], next.split(/=(.+)/)[1], arg);
broken = true;
break;
}