Skip to content

Commit c18854e

Browse files
committed
Fix missing group in regex.
1 parent 2e2afc1 commit c18854e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = "dev.lavalink.youtube"
7-
version = "1.0.0"
7+
version = "1.0.1"
88

99
allprojects {
1010
group = rootProject.group

common/src/main/java/dev/lavalink/youtube/YoutubeAudioSourceManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class YoutubeAudioSourceManager implements AudioSourceManager {
5757

5858
private static final Pattern directVideoIdPattern = Pattern.compile("^" + VIDEO_ID_REGEX + "$");
5959
private static final Pattern mainDomainPattern = Pattern.compile("^" + PROTOCOL_REGEX + DOMAIN_REGEX + "/.*");
60-
private static final Pattern shortHandPattern = Pattern.compile("^" + PROTOCOL_REGEX + "(?:" + DOMAIN_REGEX + "/(?:live|embed|shorts)|" + SHORT_DOMAIN_REGEX + ")/(?<id>.*)");
60+
private static final Pattern shortHandPattern = Pattern.compile("^" + PROTOCOL_REGEX + "(?:" + DOMAIN_REGEX + "/(?:live|embed|shorts)|" + SHORT_DOMAIN_REGEX + ")/(?<videoId>.*)");
6161

6262
protected final HttpInterfaceManager httpInterfaceManager;
6363
protected final boolean allowSearch;

0 commit comments

Comments
 (0)