From 327af5f75a4e95405fe820d165a49f5fedef6c9a Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 21 Jun 2026 02:04:20 +0200 Subject: [PATCH] style: format data fix script --- scripts/new-data-fix.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/new-data-fix.ts b/scripts/new-data-fix.ts index f57e90d..19ebfeb 100644 --- a/scripts/new-data-fix.ts +++ b/scripts/new-data-fix.ts @@ -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();