]> git.xolatile.top Git - public-libhl.git/commitdiff
fixed retarded comit
authoranon <anon@anon.anon>
Mon, 21 Aug 2023 14:26:41 +0000 (16:26 +0200)
committeranon <anon@anon.anon>
Mon, 21 Aug 2023 14:26:41 +0000 (16:26 +0200)
source/regex.c

index d87de0e310bd84b0fea3042d2e1493971169e693..e9e37ae4fe6ef59c147922229f124f680ae704da 100644 (file)
@@ -161,11 +161,9 @@ int regex_match(const char * const pattern,
                        }
 
                        if (*(pattern_pointer + 1) == '<'
-                       && (is_word_separator(*string_pointer))
-                       ||  string_pointer == string_start) {
+                       && (is_word_separator(*string_pointer))) {
                                        pattern_pointer += 2;
                                        string_pointer += 1;
-                                       match_offset = string_pointer - (string_start + string_offset);
                                        continue;
                        }