Skip to content

Commit a9174f6

Browse files
committed
Changed the regex to account for
nonword characters
1 parent a4399fd commit a9174f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class YoutubeThrottlingDecrypter {
3636

3737
private static final Pattern N_PARAM_PATTERN = Pattern.compile("[&?]n=([^&]+)");
3838
private static final Pattern FUNCTION_NAME_PATTERN = Pattern.compile(
39-
"b=a\\.get\\(\"n\"\\)\\)&&\\(b=(\\w+)\\(b\\),a\\.set\\(\"n\",b\\)");
39+
"b=a\\.get\\(\"n\"\\)\\)&&\\(b=(\\S+)\\(b\\),a\\.set\\(\"n\",b\\)");
4040

4141
private static final Map<String, String> nParams = new HashMap<>();
4242

0 commit comments

Comments
 (0)