Skip to content

Commit

Permalink
Improve regex for yarn source (#26)
Browse files Browse the repository at this point in the history
- Discussed topic once on Discord server LavaLink
  • Loading branch information
infnibor authored Jul 24, 2024
1 parent 08d6c2a commit c235212
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import java.util.regex.Pattern;

public class GetyarnAudioSourceManager extends AbstractDuncteBotHttpSource {
private static final Pattern GETYARN_REGEX = Pattern.compile("(?:http://|https://(?:www\\.)?)?getyarn\\.io/yarn-clip/(.*)");
private static final Pattern GETYARN_REGEX = Pattern.compile("https?://(?:www\\.|)getyarn\\.io/yarn-clip/(.*)");

@Override
public String getSourceName() {
Expand Down

0 comments on commit c235212

Please sign in to comment.