Subject: | regex too greedy when loading files |
Date: | Thu, 2 May 2013 15:08:25 -0400 |
To: | bug-Catalyst-View-CSS-Minifier-XS [...] rt.cpan.org |
From: | William Lang <lang [...] pythian.com> |
Catalyst/View/CSS/Minifier/XS.pm
line 72
$_ =~ s/\.css//; $dir->file( "$_.css" )
This regex is too greedy, it should be
$_ =~ s/\.css$//; $dir->file( "$_.css" )
like
Catalyst::View::JavaScript::Minifier::XS
--
*William Lang*
Software Developer
Pythian - Love your data
lang@pythian.com
Tel: +1 613 565 8696 x 1398
Mobile: +1 613 809 6999
www.pythian.com
--
--