mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[youtube] signatures: Recognize javascript functions that contain “$” (fixes #2304)
This commit is contained in:
parent
56dced2670
commit
20650c8654
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ def interpret_expression(expr, local_vars, allow_recursion):
|
|||
return a % b
|
||||
|
||||
m = re.match(
|
||||
r'^(?P<func>[a-zA-Z]+)\((?P<args>[a-z0-9,]+)\)$', expr)
|
||||
r'^(?P<func>[a-zA-Z$]+)\((?P<args>[a-z0-9,]+)\)$', expr)
|
||||
if m:
|
||||
fname = m.group('func')
|
||||
if fname not in functions:
|
||||
|
|
Loading…
Reference in a new issue