style: format data fix script

This commit is contained in:
2026-06-21 02:04:20 +02:00
committed by Milas Holsting
parent 6832625260
commit 327af5f75a

View File

@@ -1,13 +1,13 @@
import { spawnSync } from "node:child_process";
import { existsSync } from "node:fs";
import { mkdir, writeFile } from "node:fs/promises";
import { join } from "node:path";
import { spawnSync } from "node:child_process";
const toSlug = (raw: string): string =>
raw
.toLowerCase()
.replace(/[^a-z0-9]+/g, "_")
.replace(/^_+|_+$/g, "");
.replace(/[^a-z0-9]+/gu, "_")
.replace(/^_+|_+$/gu, "");
const formatYyyymmdd = (date = new Date()): string => {
const year = date.getFullYear();