Changeset 23130

Show
Ignore:
Timestamp:
11/10/08 16:56:02 (5 years ago)
Author:
drry
Message:
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/XML-Liberal/trunk/lib/XML/Liberal/Remedy/UndeclaredNS.pm

    r23129 r23130  
    4444    my $ns = $namespaces{$prefix} || "http://example.org/unknown/$self->{prefix}#"; 
    4545 
    46     my $match = $$xml_ref =~ s!^(<\?xml\s[^>]*?\?>\s*(?:<![^>]+>\s*)*<\S+)(?=\s*/?)!$1 xmlns:$prefix="$ns"!; 
     46    my $match = $$xml_ref =~ s{^(<\?xml\s[^>]*?\?>\s*(?:<![^>]+>\s*)*<\S+)(?=\s*/?)} 
     47                              {$1 xmlns:$prefix="$ns"}; 
    4748    return 1 if $match; 
    4849