From 817adbf22592955244aecad435ce0555707dba1a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 6 May 2025 19:27:45 -0400 Subject: Error checking for path components --- src/stdlib/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdlib/text.c') diff --git a/src/stdlib/text.c b/src/stdlib/text.c index 8607e165..cc8a4daf 100644 --- a/src/stdlib/text.c +++ b/src/stdlib/text.c @@ -1092,7 +1092,7 @@ public Text_t Text$replace(Text_t text, Text_t target, Text_t replacement) return result; } -public bool Text$has(Text_t text, Text_t target) +public PUREFUNC bool Text$has(Text_t text, Text_t target) { TextIter_t text_state = NEW_TEXT_ITER_STATE(text), target_state = NEW_TEXT_ITER_STATE(target); for (int64_t i = 0; i < text.length; i++) { -- cgit v1.2.3