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