From c485fe7e5d5f76986301e6b05cd9c7a03e651228 Mon Sep 17 00:00:00 2001 From: sulyi Date: Sat, 26 Nov 2016 01:47:39 +0100 Subject: [PATCH] [jsinterp] Reject method call when name is empty (+reminder TOTOs) --- youtube_dl/jsinterp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py index 4c498bdc4..c0cf8bd99 100644 --- a/youtube_dl/jsinterp.py +++ b/youtube_dl/jsinterp.py @@ -42,6 +42,7 @@ _INTEGER_RE = r'%(hex)s|%(dec)s|%(oct)s' % {'hex': __HEXADECIMAL_RE, 'dec': __DE _FLOAT_RE = r'(%(dec)s)?\.%(dec)s' % {'dec': __DECIMAL_RE} _BOOL_RE = r'true|false' +# TODO check if they can be multiline # XXX: it seams group cannot be refed this way # r'/(?=[^*])[^/\n]*/(?![gimy]*(?P[gimy])[gimy]*\g)[gimy]{0,4}' _REGEX_RE = r'''/(?=[^*]) @@ -56,7 +57,7 @@ _LITERAL_RE = r'((?P%(int)s)|(?P%(float)s)|(?P%(str)s)|(?P