mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-31 06:15:37 +00:00
don't commit testing code kids
This commit is contained in:
@@ -258,10 +258,10 @@ final class YoutubeThrottlingParameterUtils {
|
|||||||
private static String fixupFunction(@Nonnull final String function)
|
private static String fixupFunction(@Nonnull final String function)
|
||||||
throws Parser.RegexException {
|
throws Parser.RegexException {
|
||||||
final String firstArgName = Parser
|
final String firstArgName = Parser
|
||||||
.matchGroup1(FUNCTION_ARGUMENTS_REGEX + "aba([a-z]\\d)", function)
|
.matchGroup1(FUNCTION_ARGUMENTS_REGEX, function)
|
||||||
.split(",")[0].trim();
|
.split(",")[0].trim();
|
||||||
final Pattern earlyReturnPattern = Pattern.compile(
|
final Pattern earlyReturnPattern = Pattern.compile(
|
||||||
EARLY_RETURN_REGEX + firstArgName + "aba;",
|
EARLY_RETURN_REGEX + firstArgName + ";",
|
||||||
Pattern.DOTALL);
|
Pattern.DOTALL);
|
||||||
final Matcher earlyReturnCodeMatcher = earlyReturnPattern.matcher(function);
|
final Matcher earlyReturnCodeMatcher = earlyReturnPattern.matcher(function);
|
||||||
return earlyReturnCodeMatcher.replaceFirst(";");
|
return earlyReturnCodeMatcher.replaceFirst(";");
|
||||||
|
Reference in New Issue
Block a user