Skip Menu |

This queue is for tickets about the Regex-PreSuf CPAN distribution.

Report information
The Basics
Id: 6287
Status: resolved
Priority: 0/
Queue: Regex-PreSuf

People
Owner: Nobody in particular
Requestors: bart.lateur [...] pandora.be
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.15
Fixed in: (no value)



Subject: Failure with newlines
Regex::PreSuf (1.15) fails to produce a proper working regex if one of the words contains a newline. For example: use Regex::PreSuf; my $re = presuf("foo\tbar", "foo\nbar"); This patch will fix it: --- Regex-PreSuf-1.15/PreSuf.pm 2000-05-16 18:05:18.000000000 +0200 +++ Regex-PreSuf-edit/PreSuf.pm 2004-05-12 14:30:22.000000000 +0200 @@ -375,7 +375,7 @@ @args = map { s/\\\././g; $_ } @args if $param->{ anychar }; foreach (@args) { - $_ = [ /(\\?.)/g ]; + $_ = [ /(\\?.)/gs ]; } return _presuf(0, $param, @args);
Date: Wed, 12 May 2004 23:15:57 +0300
From: Jarkko Hietaniemi <jhi [...] iki.fi>
To: bug-Regex-PreSuf [...] rt.cpan.org
Subject: Re: [cpan #6287] Failure with newlines
RT-Send-Cc:
Please try the 1.16. -- Jarkko Hietaniemi <jhi@iki.fi> http://www.iki.fi/jhi/ "There is this special biologist word we use for 'stable'. It is 'dead'." -- Jack Cohen