gen-screenshot: preserve periods

This commit is contained in:
D. Bohdan 2023-07-11 12:59:45 +00:00
parent 3d69294ec9
commit 196ce150ae
1 changed files with 1 additions and 1 deletions

View File

@ -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) {