diff --git a/build.js b/build.js index b3d93b3..4b591f8 100755 --- a/build.js +++ b/build.js @@ -88,7 +88,7 @@ for (const [urls, matches] of schemasByUrls) { const name = match .replaceAll(/\b(json|schema)\b/g, '') .replaceAll('*', '') - .replaceAll(/\W+/g, '-') + .replaceAll(/[\W_]+/g, '-') .replaceAll(/(^-|-$)/g, '') url = `./schemas/${name}.schema.json` await writeFile(