word boundary regex bug fix
This commit is contained in:
parent
8bc5c7e137
commit
92172c010a
@ -161,9 +161,11 @@ int regex_match(const char * const pattern,
|
||||
}
|
||||
|
||||
if (*(pattern_pointer + 1) == '<'
|
||||
&& is_word_separator(*string_pointer)) {
|
||||
&& (is_word_separator(*string_pointer))
|
||||
|| string_pointer == string_start) {
|
||||
pattern_pointer += 2;
|
||||
string_pointer += 1;
|
||||
match_offset = string_pointer - (string_start + string_offset);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user