mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-21 13:44:03 +00:00
refactor: simplify cli conversions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user