From 3e4207a7bae918bea0b9b9edbea37588773b74fc Mon Sep 17 00:00:00 2001 From: sulyi Date: Tue, 22 Nov 2016 02:34:42 +0100 Subject: [PATCH] [utils] Fixing js_to_json *or / in comment --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 877879446..3a14048c9 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -2115,7 +2115,7 @@ def js_to_json(code): return re.sub(r'''(?sx) "(?:[^"\\]*(?:\\\\|\\['"nurtbfx/\n]))*[^"\\]*"| '(?:[^'\\]*(?:\\\\|\\['"nurtbfx/\n]))*[^'\\]*'| - /\*[^*]*\*/|,(?=(\s|(/\*[^*]*\*/))*[\]}])| + /\*((?!\*/)\n|.)*\*/|,(?=(\s|(/\*((?!\*/)\n|.)*\*/))*[\]}])| [a-zA-Z_][.a-zA-Z_0-9]*| \b(?:0[xX][0-9a-fA-F]+|0+[0-7]+)(?:\s*:)?| [0-9]+(?=\s*:)