0
0
Fork 0

Fix utils.strip_jsonp

main
Filippo Valsorda 2014-07-14 00:41:23 +02:00
parent 76233cda34
commit 816930c485
1 changed files with 1 additions and 1 deletions

View File

@ -1428,7 +1428,7 @@ US_RATINGS = {
def strip_jsonp(code): def strip_jsonp(code):
return re.sub(r'(?s)^[a-zA-Z0-9_]+\s*\(\s*(.*)\)\s*?\s*$', r'\1', code) return re.sub(r'(?s)^[a-zA-Z0-9_]+\s*\(\s*(.*)\);?\s*?\s*$', r'\1', code)
def qualities(quality_ids): def qualities(quality_ids):