From 96b40dff450df701200ea5edceb07f2ed847e3fd Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 17 Feb 2000 07:11:22 +0000 Subject: 2000-02-17 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'regex.c') diff --git a/regex.c b/regex.c index 21aa900960..0ee2b066d3 100644 --- a/regex.c +++ b/regex.c @@ -3721,12 +3721,12 @@ re_match(bufp, string_arg, size, pos, regs) cc = c = (unsigned char)translate[c]; not = is_in_list(c, p); + if (!not && cc != c) { + part = not = is_in_list(cc, p); + } if (*(p - 1) == (unsigned char)charset_not) { not = !not; } - else if (!not && cc != c) { - part = not = is_in_list(cc, p); - } if (!not) goto fail; p += 1 + *p + 2 + EXTRACT_UNSIGNED(&p[1 + *p])*8; -- cgit v1.2.3