1
0
Fork 0

[jsinterp] Fix extract_object (#13580)

Fixes sig extraction for YouTube player `e12fbea4`

Authored by: seproDev
This commit is contained in:
sepro 2025-06-30 15:50:33 +02:00 committed by GitHub
commit 958153a226
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 1 deletions

View file

@ -857,7 +857,7 @@ class JSInterpreter:
obj = {}
obj_m = re.search(
r'''(?x)
(?<!\.)%s\s*=\s*{\s*
(?<![a-zA-Z$0-9.])%s\s*=\s*{\s*
(?P<fields>(%s\s*:\s*function\s*\(.*?\)\s*{.*?}(?:,\s*)?)*)
}\s*;
''' % (re.escape(objname), _FUNC_NAME_RE),