commit 16f8e9df8a414a182ddd5870a4c98a4725e911cf parent b081cebefaa54812bf55d4856da0dbfba3998d26 Author: Philipp Hagemeister <phihag@phihag.de> Date: Fri, 25 Jul 2014 06:54:52 +0200 [jsinterp] Allow uppercase object names Diffstat:
M | youtube_dl/jsinterp.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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')