refactor: simplify cli conversions

This commit is contained in:
Peter Steinberger
2026-04-11 01:27:39 +01:00
parent 5c0d1c6a40
commit 1fb2e18f47
21 changed files with 24 additions and 25 deletions

View File

@@ -50,7 +50,7 @@ export function detectChangedScope(changedPaths) {
let hasNonNativeNonDocs = false;
for (const rawPath of changedPaths) {
const path = String(rawPath).trim();
const path = rawPath.trim();
if (!path) {
continue;
}

View File

@@ -110,9 +110,7 @@ for (const abs of markdownFiles) {
if (!match) {
continue;
}
const permalink = String(match[1])
.trim()
.replace(/^['"]|['"]$/g, "");
const permalink = match[1].trim().replace(/^['"]|['"]$/g, "");
routes.add(normalizeRoute(permalink));
}