Jeremy Henty
6/5/2006 12:44:00 AM
On 2006-06-04, ts <decoux@moulon.inra.fr> wrote:
> Can you test this patch ?
>
> svg% diff -u regex.c.~1.96.2.8.~ regex.c
> --- regex.c.~1.96.2.8.~ 2006-04-24 17:15:21.000000000 +0200
> +++ regex.c 2006-06-04 13:31:23.000000000 +0200
> @@ -1963,7 +1963,7 @@
> stackp--;
> fixup_alt_jump = *stackp ? *stackp + bufp->buffer - 1 : 0;
> laststart = *--stackp + bufp->buffer;
> - if (c == '!' || c == '=') laststart = b;
> + if (c == '!' /* || c == '=' */) laststart = b;
> break;
>
> case '|':
It works!
$ regexp_wibble
yes
no
yes
[patch and reinstall]
$ regexp_wibble
yes
yes
yes
>>> regexp_wibble
#!/usr/bin/env ruby
$VERBOSE = true
string = 'a'
[ %r{Z?},
%r{(?=Z)?}, # does not match!!!
%r{((?=Z))?},
].each do |re|
puts re.match(string) ? "yes" : "no"
end
<<< regexp_wibble
And also
$ make check
1356 tests, 15409 assertions, 0 failures, 0 errors
....so nothing appears to have broken.
Thanks,
Jeremy Henty