From 196ce150ae6ca7e606981e7adeaf8c700cce647e Mon Sep 17 00:00:00 2001 From: "D. Bohdan" Date: Tue, 11 Jul 2023 12:59:45 +0000 Subject: [PATCH] gen-screenshot: preserve periods --- gen-screenshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-screenshot.ts b/gen-screenshot.ts index 39396b5..19e7173 100755 --- a/gen-screenshot.ts +++ b/gen-screenshot.ts @@ -9,7 +9,7 @@ const temporaryFile = "temp.html"; const slugify = (str: string) => str .toLowerCase() - .replace(/[^a-z0-9]+/g, "-") + .replace(/[^a-z0-9.]+/g, "-") .replace(/(^-|-$)/g, ""); if (Deno.args.length !== 2) {