summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-07-25 06:54:52 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-07-25 06:54:52 +0200
commit16f8e9df8a414a182ddd5870a4c98a4725e911cf (patch)
tree99746d1145055eae92d5bc4cfaaee1719232f9a5
parentb081cebefaa54812bf55d4856da0dbfba3998d26 (diff)
downloadyoutube-dl-16f8e9df8a414a182ddd5870a4c98a4725e911cf.tar.gz
youtube-dl-16f8e9df8a414a182ddd5870a4c98a4725e911cf.tar.xz
youtube-dl-16f8e9df8a414a182ddd5870a4c98a4725e911cf.zip
[jsinterp] Allow uppercase object names
-rw-r--r--youtube_dl/jsinterp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py
index 5731e264b..7f00586ae 100644
--- a/youtube_dl/jsinterp.py
+++ b/youtube_dl/jsinterp.py
@@ -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')