2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-08-31 22:35:50 +00:00

don't commit testing code kids

This commit is contained in:
gechoto
2024-12-31 16:54:57 +01:00
committed by Stypox
parent 4181625c2c
commit d007e368f3

View File

@@ -258,10 +258,10 @@ final class YoutubeThrottlingParameterUtils {
private static String fixupFunction(@Nonnull final String function)
throws Parser.RegexException {
final String firstArgName = Parser
.matchGroup1(FUNCTION_ARGUMENTS_REGEX + "aba([a-z]\\d)", function)
.matchGroup1(FUNCTION_ARGUMENTS_REGEX, function)
.split(",")[0].trim();
final Pattern earlyReturnPattern = Pattern.compile(
EARLY_RETURN_REGEX + firstArgName + "aba;",
EARLY_RETURN_REGEX + firstArgName + ";",
Pattern.DOTALL);
final Matcher earlyReturnCodeMatcher = earlyReturnPattern.matcher(function);
return earlyReturnCodeMatcher.replaceFirst(";");