From 02e09dfdab989581ab494103de3799e8c6a3d881 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Mon, 14 Jun 2021 14:06:05 -0700 Subject: [PATCH] Add dot to list of encoded chars in tags --- lib/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.ts b/lib/common.ts index 79d2e69..08e0947 100644 --- a/lib/common.ts +++ b/lib/common.ts @@ -51,7 +51,7 @@ export function escapeRegExp(str: string): string { export function encodeTag(tag: string): string { return encodeURIComponent(tag) .replace( - /[!~*'()]/g, + /[!~*'().]/g, (c) => "%" + c.charCodeAt(0).toString(16).toUpperCase() ) .replace(/0x(?=[0-9A-Z]{2})/g, "0%78")