mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 05:01:15 +00:00
refactor: dedupe plugin lowercase helpers
This commit is contained in:
@@ -2,6 +2,7 @@ import fs from "node:fs";
|
||||
import { createRequire } from "node:module";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js";
|
||||
import { resolveGitHeadPath } from "./git-root.js";
|
||||
import { resolveOpenClawPackageRootSync } from "./openclaw-root.js";
|
||||
|
||||
@@ -17,7 +18,7 @@ const formatCommit = (value?: string | null) => {
|
||||
if (!match) {
|
||||
return null;
|
||||
}
|
||||
return match[0].slice(0, 7).toLowerCase();
|
||||
return normalizeLowercaseStringOrEmpty(match[0].slice(0, 7));
|
||||
};
|
||||
|
||||
const cachedGitCommitBySearchDir = new Map<string, string | null>();
|
||||
|
||||
Reference in New Issue
Block a user