openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
17 lines (16 loc) • 477 B
JavaScript
import { o as normalizeLowercaseStringOrEmpty } from "./string-coerce-CCIiB4H7.mjs";
//#region src/auto-reply/reply/commands-reset-mode.ts
function parseSoftResetCommand(e) {
let t = e;
for (const e of [/^\/reset(?:\s|$)/, /^soft(?:\s|$)/]) {
const n = normalizeLowercaseStringOrEmpty(t).match(e);
if (!n) return { matched: false };
t = t.slice(n[0].length).trimStart();
}
return {
matched: true,
tail: t
};
}
//#endregion
export { parseSoftResetCommand as t };