From 13ac9dc0642aba3626630f9aa9f58fa6432827d5 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 25 Jan 2009 23:31:50 +0000 Subject: [PATCH] Posix character classes have to be used inside of regexp classes. --- lib/WebGUI/HTML.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/HTML.pm b/lib/WebGUI/HTML.pm index 32d94ea7d..3d213ac59 100644 --- a/lib/WebGUI/HTML.pm +++ b/lib/WebGUI/HTML.pm @@ -436,7 +436,7 @@ sub splitTag { while (my $token = $p->get_tag($tag)) { my $text = $p->get_trimmed_text("/$tag"); - next if $text =~ /^([:space:]|[:^print:])*$/; # skip whitespace + next if $text =~ /^([[:space:]]|[[:^print:]])*$/; # skip whitespace push @result, $text; # add the text between the tags to the result array last if @result == $count; # if we have a full count then quit }