On fix/engram-node-full-field-corruption: tim-wip-presync-2026-06-25: json_get_bool accepts '1' + elp.elh emdash->hyphen

This commit is contained in:
Tim Lingo
2026-06-25 17:29:50 -05:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// auto-generated by elc --emit-header do not edit
// auto-generated by elc --emit-header - do not edit
extern fn sem_get(json: String, key: String) -> String
extern fn generate_frame(frame: Any) -> String
extern fn generate_frame_lang(frame: Any, lang_code: String) -> String
+2 -2
View File
@@ -84,10 +84,10 @@ fn json_get_float(json: String, key: String) -> Float {
}
// json_get_bool extract a boolean value for a key.
// Returns true only when the raw JSON token is the literal "true".
// Accepts "true" or "1" as truthy (UI sends integer 1, JSON spec uses true).
fn json_get_bool(json: String, key: String) -> Bool {
let s: String = __json_get(json, key)
return str_eq(s, "true")
return str_eq(s, "true") || str_eq(s, "1")
}
// ---------------------------------------------------------------------------