Skip to content

Commit 1915dc6

Browse files
committed
[YouTube] Allow both types of string quotes
1 parent a847fdb commit 1915dc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSignatureUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class YoutubeSignatureUtils {
3838
private static final String DEOBF_FUNC_REGEX_END = "=function\\([a-zA-Z0-9_]+\\)\\{.+?\\})";
3939

4040
// CHECKSTYLE:OFF
41-
private static final String SIG_DEOBF_GLOBAL_ARRAY_REGEX = "(var [A-z]=\".*\".split\\(\";\"\\))";
41+
private static final String SIG_DEOBF_GLOBAL_ARRAY_REGEX = "(var [A-z]=['\"].*['\"].split\\(\";\"\\))";
4242
private static final String SIG_DEOBF_HELPER_OBJ_NAME_REGEX = ";([A-Za-z0-9_\\$]{2,})\\[..";
4343
private static final String SIG_DEOBF_HELPER_OBJ_REGEX_START = "(var ";
4444
private static final String SIG_DEOBF_HELPER_OBJ_REGEX_END = "=\\{(?>.|\\n)+?\\}\\};)";

0 commit comments

Comments
 (0)