Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-StripScripts CPAN distribution.

Report information
The Basics
Id: 98110
Status: resolved
Priority: 0/
Queue: HTML-StripScripts

People
Owner: Nobody in particular
Requestors: fraserbn [...] gmail.com
Cc:
AdminCc:

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

Attachments
0001-Typo-in-the-_hss_attval_size-regex.patch



Subject: [PATCH] Bug/typo in the _hss_attval_size regex
Perl 5.21 made this sort of thing an exception, which caught the bug.
Subject: 0001-Typo-in-the-_hss_attval_size-regex.patch
From 48eaa9d94e70c98f36349840cc484e86531b307b Mon Sep 17 00:00:00 2001 From: Brian Fraser <fraserbn@gmail.com> Date: Sun, 17 Aug 2014 17:57:57 +0200 Subject: [PATCH] Typo in the _hss_attval_size regex --- StripScripts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StripScripts.pm b/StripScripts.pm index fa6922d..251b49b 100644 --- a/StripScripts.pm +++ b/StripScripts.pm @@ -1630,7 +1630,7 @@ size or length. sub _hss_attval_size { $_[3] - =~ /^\s*([+-]?\d{1,20}(?:\.\d{1,20)?)\s*((?:\%|\*|ex|px|pc|cm|mm|in|pt|em)?)\s*$/i + =~ /^\s*([+-]?\d{1,20}(?:\.\d{1,20})?)\s*((?:\%|\*|ex|px|pc|cm|mm|in|pt|em)?)\s*$/i ? lc "$1$2" : undef; } -- 1.7.12.4 (Apple Git-37)
Fixed in 1.06 - thanks for the patch and sorry for the delay


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.