MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / setRefValue

Function setRefValue

src/handlers/quickTools.js:770–775  ·  view source on GitHub ↗
(ref, value)

Source from the content-addressed store, hash-verified

768}
769
770function setRefValue(ref, value) {
771 if (!ref) return;
772 const normalized = typeof value === "string" ? value : String(value ?? "");
773 if (ref.el) ref.el.value = normalized;
774 ref.value = normalized;
775}
776
777function applySearchQuery(editor, searchValue, replaceValue) {
778 if (!editor) return null;

Callers 1

toggleSearchFunction · 0.85

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected