[jsinterp] Do not expect dot in simple function call
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 24 Jul 2014 09:33:33 +0000 (11:33 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 24 Jul 2014 09:33:42 +0000 (11:33 +0200)
youtube_dl/jsinterp.py

index 95e6948ff3ab518e6cd36f9e7423d1cc71cb5785..5731e264baa06d276373d6bf7290e9b1df47ef68 100644 (file)
@@ -130,7 +130,7 @@ class JSInterpreter(object):
             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')
             argvals = tuple([