From d007e368f3030118ce5c57518a5e5038c6828bfe Mon Sep 17 00:00:00 2001 From: gechoto <124326167+gechoto@users.noreply.github.com> Date: Tue, 31 Dec 2024 16:54:57 +0100 Subject: [PATCH] don't commit testing code kids --- .../services/youtube/YoutubeThrottlingParameterUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java index ef7a1d0d8..2947689fd 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java @@ -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(";");