Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RtlZeroMemory/Rezi
/ toSafeString
Function
toSafeString
scripts/hsr/widget-code-editor-state.mjs:1–3 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
1
function
toSafeString(value) {
2
return
typeof value ===
"string"
? value :
""
;
3
}
4
5
export
function
splitCodeDraft(draft) {
6
const
normalized = toSafeString(draft).replace(/\r\n?/g,
"\n"
);
Callers
2
splitCodeDraft
Function · 0.85
joinCodeLines
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected