MCPcopy Create free account
hub / github.com/backnotprop/plannotator / cleanupSystemEntry

Function cleanupSystemEntry

apps/opencode-plugin/plan-mode.ts:36–43  ·  view source on GitHub ↗
(entry: string)

Source from the content-addressed store, hash-verified

34}
35
36function cleanupSystemEntry(entry: string): string {
37 return entry
38 .split("\n")
39 .map((line) => line.replace(/[ \t]+$/g, ""))
40 .join("\n")
41 .replace(/\n{3,}/g, "\n\n")
42 .trim();
43}
44
45export function stripConflictingPlanModeRules(systemEntries: string[]): string[] {
46 return systemEntries

Callers 1

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected