Changed the regex to account for

nonword characters
This commit is contained in:
Abdu Ameen 2022-01-31 22:29:00 -08:00
parent a4399fd4ad
commit a9174f6b9f
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class YoutubeThrottlingDecrypter {
private static final Pattern N_PARAM_PATTERN = Pattern.compile("[&?]n=([^&]+)");
private static final Pattern FUNCTION_NAME_PATTERN = Pattern.compile(
"b=a\\.get\\(\"n\"\\)\\)&&\\(b=(\\w+)\\(b\\),a\\.set\\(\"n\",b\\)");
"b=a\\.get\\(\"n\"\\)\\)&&\\(b=(\\S+)\\(b\\),a\\.set\\(\"n\",b\\)");
private static final Map<String, String> nParams = new HashMap<>();