modify html parser regex
This commit is contained in:
parent
15de609ad1
commit
90d0db74cd
|
@ -20,7 +20,7 @@ def parse_html(value, m):
|
||||||
>>>parse_html("foo is 20px", 4)
|
>>>parse_html("foo is 20px", 4)
|
||||||
>>>"foo is 80px"
|
>>>"foo is 80px"
|
||||||
"""
|
"""
|
||||||
p = "font\-size: [0-9][0-9]?px"
|
p = "font\-size:[\s]?[0-9][0-9]?px"
|
||||||
matches = re.findall(p, value)
|
matches = re.findall(p, value)
|
||||||
for match in matches:
|
for match in matches:
|
||||||
# reg = r'font-size:[\s?]
|
# reg = r'font-size:[\s?]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user