From ebc97b1fce01acaaeb58d8eb4afcbece65f45012 Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 24 Aug 2023 03:15:13 +0200 Subject: [PATCH] use new regex_search() --- source/hl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/hl.h b/source/hl.h index b64a77c..fe6f36f 100644 --- a/source/hl.h +++ b/source/hl.h @@ -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,