From c72b0406a32ffc3f04324f7b6c321486762fca41 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 16 Aug 2025 17:21:01 -0400 Subject: Improved parsing and prefix/suffix matching using a `remainder` parameter --- src/stdlib/paths.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stdlib/paths.c') diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c index 94baf995..58702ec7 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -619,10 +619,10 @@ public bool Path$has_extension(Path_t path, Text_t extension) if (extension.length == 0) return !Text$has(Text$from(last, I(2)), Text(".")) || Text$equal_values(last, Text("..")); - if (!Text$starts_with(extension, Text("."))) + if (!Text$starts_with(extension, Text("."), NULL)) extension = Texts(Text("."), extension); - return Text$ends_with(Text$from(last, I(2)), extension); + return Text$ends_with(Text$from(last, I(2)), extension, NULL); } public Path_t Path$child(Path_t path, Text_t name) -- cgit v1.2.3