Skip to content

Commit

Permalink
slightly more consistent formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 26, 2015
1 parent 5a32e12 commit 350ee5b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/Mojo/DOM/HTML.pm
Expand Up @@ -8,14 +8,10 @@ has tree => sub { ['root'] };
has 'xml';

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

0 comments on commit 350ee5b

Please sign in to comment.