From be0553695e8993357fdeed0bb5b42c93b3d1e849 Mon Sep 17 00:00:00 2001 From: Ilya Sher <34807039+ilyash-b@users.noreply.github.com> Date: Tue, 31 Dec 2024 18:22:24 +0400 Subject: [PATCH] [stdlib] Cosmetics --- lib/stdlib.ngs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdlib.ngs b/lib/stdlib.ngs index 4ada623a..9b33b03f 100644 --- a/lib/stdlib.ngs +++ b/lib/stdlib.ngs @@ -5026,7 +5026,7 @@ section "Strings and characters" { m = (~)(haystack, needle, 0) if not(m) { if collect_unmatched collect(haystack) - return null + return } start_offset = m.positions[0].start next_offset = m.positions[0].end