This commit is contained in:
2026-06-07 01:29:58 -05:00
parent a8d2cb8303
commit ac7fd36ccd
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -430,7 +430,7 @@ fn register_read_api(engine: &mut Engine, board: &BoardRef, board_queue: &BoardQ
let b = board.clone();
engine.register_fn("has_tag", move |ctx: NativeCallContext, tag: ImmutableString| {
let src = source_of(&ctx);
b.borrow().objects.get(&src).map_or(false, |o| o.tags.contains(tag.as_str()))
b.borrow().objects.get(&src).is_some_and(|o| o.tags.contains(tag.as_str()))
});
// get_tags() -> Array of strings: the calling object's current tag set.