mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-27 09:34:42 +00:00
remove non-greedy *? matcher
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@434 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
3675c1ebef
commit
f727fbd1bf
1 changed files with 3 additions and 3 deletions
|
|
@ -77,14 +77,14 @@ _linkMatcher = r"""
|
|||
\s* # whitespace
|
||||
%s # tag name
|
||||
\s+ # whitespace
|
||||
([^"'>]|"[^"]*"|'[^']*')*? # skip leading attributes
|
||||
([^"'>]|"[^"]*"|'[^']*')* # skip leading attributes
|
||||
%s # attrib name
|
||||
\s* # whitespace
|
||||
= # equal sign
|
||||
\s* # whitespace
|
||||
(?P<value> # attribute value
|
||||
"[^"]*" | # in double quotes
|
||||
'[^']*' | # in single quotes
|
||||
"[^"]*" | # in double quotes
|
||||
'[^']*' | # in single quotes
|
||||
[^\s>]+) # unquoted
|
||||
([^"'>]|"[^"]*"|'[^']*')* # skip trailing attributes
|
||||
> # close tag
|
||||
|
|
|
|||
Loading…
Reference in a new issue