[jsinterp] Allow uppercase object names
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 25 Jul 2014 04:54:52 +0000 (06:54 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 25 Jul 2014 04:54:52 +0000 (06:54 +0200)
youtube_dl/jsinterp.py

index 5731e264baa06d276373d6bf7290e9b1df47ef68..7f00586ae3217cfaa1b2912316736904eddeb964 100644 (file)
@@ -61,7 +61,7 @@ class JSInterpreter(object):
             pass
 
         m = re.match(
-            r'^(?P<var>[a-z]+)\.(?P<member>[^(]+)(?:\(+(?P<args>[^()]*)\))?$',
+            r'^(?P<var>[a-zA-Z0-9_]+)\.(?P<member>[^(]+)(?:\(+(?P<args>[^()]*)\))?$',
             expr)
         if m:
             variable = m.group('var')