From f9be26fe5aecd17a026aedf9ea2b8fa5bb7fe0df Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Tue, 7 Jan 2025 22:03:09 -0500 Subject: [PATCH] relax starts_with and end_with error checking --- strings.scad | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/strings.scad b/strings.scad index a7b6372b..c647c760 100644 --- a/strings.scad +++ b/strings.scad @@ -150,6 +150,7 @@ function _str_find_all(str,pattern) = // comparison methods were slower. function substr_match(str,start,pattern) = assert(is_str(str)) + assert(is_str(pattern)) len(str)-start