Skip to content

Commit

Permalink
[bug] /[a-c#]+\W/ =~ "def#" fails when encoding is UTF-16/32
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Jul 15, 2014
1 parent 55710ff commit 609d0ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,7 @@ is_not_included(Node* x, Node* y, regex_t* reg)
return 0;
}
else {
if (IS_NOT_NULL(xc->mbuf)) return 0;
for (i = 0; i < SINGLE_BYTE_SIZE; i++) {
int is_word;
if (NCTYPE(y)->ascii_range)
Expand Down

0 comments on commit 609d0ea

Please sign in to comment.