Compare commits

...

2 Commits

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")
}
// ---------------------------------------------------------------------------