[npo] Improve npo.nl (Fixes #4173)
This commit is contained in:
parent
bf951c5e29
commit
609a61e3e6
3 changed files with 8 additions and 2 deletions
|
@ -1331,7 +1331,8 @@ def parse_age_limit(s):
|
|||
|
||||
|
||||
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*?(?://[^\n]*)*$', r'\1', code)
|
||||
|
||||
|
||||
def js_to_json(code):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue