preserve original function name only case

This commit is contained in:
Owen Roberts 2024-08-01 06:46:46 -06:00
parent d4119b0f30
commit e14ee05742
1 changed files with 4 additions and 3 deletions

View File

@ -127,11 +127,12 @@ final class YoutubeThrottlingParameterUtils {
+ "known patterns in the base JavaScript player code", e);
}
if (matcher.groupCount() == 1) {
return matcher.group(1);
}
final int funcNameIndex = matcher.groupCount() - 1;
final String functionName = matcher.group(funcNameIndex);
if (matcher.groupCount() == 1) {
return functionName;
}
final int arrayNumIndex = matcher.groupCount();
final int arrayNum = Integer.parseInt(matcher.group(arrayNumIndex));