]> git.xolatile.top Git - public-libhl.git/commitdiff
use new regex_search()
authoranon <anon@anon.anon>
Thu, 24 Aug 2023 01:15:13 +0000 (03:15 +0200)
committeranon <anon@anon.anon>
Thu, 24 Aug 2023 01:15:13 +0000 (03:15 +0200)
source/hl.h

index b64a77c0bcafc206a9797a5e6dfcdc785ff57de0..fe6f36f82f253957b03e0458a98c163b359eaaa3 100644 (file)
@@ -177,7 +177,8 @@ int token_fits(const token_t *   const         token,
                return true;
        }
 
-       return regex_match(pattern, to, string_offset, match_offset);
+       //return regex_match(pattern, to, string_offset, match_offset);
+       return regex_search(NULL, pattern + string_offset);
 }
 
 void render_string(const char * const string,