Browse Source

gen-screenshot: preserve periods

pull/32/head
D. Bohdan 10 months ago
parent
commit
196ce150ae
  1. 2
      gen-screenshot.ts

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

Loading…
Cancel
Save