all functions unqote

master
inpos 2018-08-08 17:57:55 +03:00
parent 361aa9b93e
commit edb8dcb0a9
1 changed files with 1 additions and 1 deletions

View File

@ -58,4 +58,4 @@ class Component(js.JsObject):
def __str__(self): def __str__(self):
s = json.dumps(self._js, default=js._encoder) s = json.dumps(self._js, default=js._encoder)
return re.sub(r'("handler":\s+)("([^"]+)")', r'\1\3', s) return re.sub(r'(":\s+)("(function[^"]+)")', r'\1\3', s)