parent
ed66a17ef0
commit
febff4c119
2 changed files with 12 additions and 2 deletions
|
|
@ -3143,6 +3143,8 @@ def js_to_json(code, vars={}):
|
|||
|
||||
return '"%s"' % v
|
||||
|
||||
code = re.sub(r'new Date\((".+")\)', r'\g<1>', code)
|
||||
|
||||
return re.sub(r'''(?sx)
|
||||
"(?:[^"\\]*(?:\\\\|\\['"nurtbfx/\n]))*[^"\\]*"|
|
||||
'(?:[^'\\]*(?:\\\\|\\['"nurtbfx/\n]))*[^'\\]*'|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue