Browse Source

gen-screenshot: preserve periods

pull/32/head
D. Bohdan 1 year 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) => const slugify = (str: string) =>
str str
.toLowerCase() .toLowerCase()
.replace(/[^a-z0-9]+/g, "-") .replace(/[^a-z0-9.]+/g, "-")
.replace(/(^-|-$)/g, ""); .replace(/(^-|-$)/g, "");
if (Deno.args.length !== 2) { if (Deno.args.length !== 2) {

Loading…
Cancel
Save