typos in attrfind regex

This commit is contained in:
Guido van Rossum 1995-10-06 15:30:28 +00:00
parent d58364e709
commit 650ba37e1d
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class SGMLParser:
attrfind = regex.compile(
'[ \t\n]+\([a-zA-Z_][a-zA-Z_0-9]*\)' +
'\([ \t\n]*=[ \t\n]*' +
'\(\'[^\']*\';\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]+\)\)?')
'\(\'[^\']*\'\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]*\)\)?')
k = tagfind.match(rawdata, i+1)
if k < 0:
raise RuntimeError, 'unexpected call to parse_starttag'