Skip to content

Commit

Permalink
fix typo in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 26, 2015
1 parent 648eaa1 commit eb63731
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/DOM/HTML.pm
Expand Up @@ -8,13 +8,13 @@ has tree => sub { ['root'] };
has 'xml';

my $ATTR_RE = qr/
([^<>=\s\/]+|\/) # Key
([^<>=\s\/]+|\/) # Key
(?:
\s*=\s*
(?:
([\"'])(.*?)\g{-2} # Quoted
(["'])(.*?)\g{-2} # Quoted
|
([^>\s]*) # Unquoted
([^>\s]*) # Unquoted
)
)?
\s*
Expand Down

0 comments on commit eb63731

Please sign in to comment.