Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 650ba37

Browse files
committed
typos in attrfind regex
1 parent d58364e commit 650ba37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/sgmllib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def parse_starttag(self, i):
178178
attrfind = regex.compile(
179179
'[ \t\n]+\([a-zA-Z_][a-zA-Z_0-9]*\)' +
180180
'\([ \t\n]*=[ \t\n]*' +
181-
'\(\'[^\']*\';\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]+\)\)?')
181+
'\(\'[^\']*\'\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]*\)\)?')
182182
k = tagfind.match(rawdata, i+1)
183183
if k < 0:
184184
raise RuntimeError, 'unexpected call to parse_starttag'

0 commit comments

Comments
 (0)