mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-24 14:13:43 +00:00
optimize img_re regular expression
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1919 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
6f488fd189
commit
30024a4683
2 changed files with 10 additions and 1 deletions
|
|
@ -46,6 +46,15 @@
|
|||
Type: feature
|
||||
Changed: linkcheck/ansicolor.py
|
||||
|
||||
* Remember a <base href=""> tag in the link parser. Saves one HTML
|
||||
parse.
|
||||
Type: feature
|
||||
Changed: linkcheck/checker/urlbase.py, linkcheck/linkparse.py
|
||||
|
||||
* Optimize link name parsing of img alt tags.
|
||||
Type: feature
|
||||
Changed: linkcheck/linkname.py
|
||||
|
||||
1.13.5 "Die Musterknaben" (released 22.9.2004)
|
||||
* Use xgettext with Python support for .pot file creation, adjusted
|
||||
developer documentation.
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import linkcheck.strformat
|
|||
|
||||
imgtag_re = re.compile(r"(?i)\s+alt\s*=\s*"+\
|
||||
r"""(?P<name>("[^"\n]*"|'[^'\n]*'|[^\s>]+))""")
|
||||
img_re = re.compile(r"""(?i)<\s*img\s+("[^"\n]*"|'[^'\n]*'|[^>]+)+>""")
|
||||
img_re = re.compile(r"""(?i)<\s*img\s+("[^"\n]*"|'[^'\n]*'|[^>])+>""")
|
||||
endtag_re = re.compile(r"""(?i)</a\s*>""")
|
||||
|
||||
def _unquote (txt):
|
||||
|
|
|
|||
Loading…
Reference in a new issue