Permalink
Browse files

Merge pull request #2 from mala/patch-1

fix regexp for InvalidEncoding
  • Loading branch information...
2 parents 5f18e03 + 4f0d068 commit 531cafd3c4f4e046645cc97a66c155b84734e386 @miyagawa committed Jun 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/XML/Liberal/Remedy/InvalidEncoding.pm
@@ -11,7 +11,7 @@ sub apply {
my($driver, $error, $xml_ref) = @_;
return 0 if $error->message !~
- /^(?:(?:i18n |encoding )?error : )?input conversion failed due to input error/;
+ /^\s*(?:(?:i18n |encoding )?error : )?input conversion failed due to input error/;
my (undef, $encoding) = $$xml_ref =~ $RX;
unless ($encoding) {

0 comments on commit 531cafd

Please sign in to comment.