[npo] Improve npo.nl (Fixes #4173)

This commit is contained in:
Philipp Hagemeister 2014-11-13 16:28:05 +01:00
parent bf951c5e29
commit 609a61e3e6
3 changed files with 8 additions and 2 deletions

View file

@ -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):