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,