From: Philipp Hagemeister Date: Fri, 25 Jul 2014 04:54:52 +0000 (+0200) Subject: [jsinterp] Allow uppercase object names X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=16f8e9df8a414a182ddd5870a4c98a4725e911cf;p=youtube-dl [jsinterp] Allow uppercase object names --- 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[a-z]+)\.(?P[^(]+)(?:\(+(?P[^()]*)\))?$', + r'^(?P[a-zA-Z0-9_]+)\.(?P[^(]+)(?:\(+(?P[^()]*)\))?$', expr) if m: variable = m.group('var')