Skip to content

Commit 9bb85b3

Browse files
committed
fix: update playlist URL regex to support mobile and music subdomains
1 parent 01e9444 commit 9bb85b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utilities/app_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ double getResponsiveArtistFontSize(Size size) {
7373
}
7474

7575
final RegExp _youtubePlaylistRegExp = RegExp(
76-
r'^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.*(list=([a-zA-Z0-9_-]+)).*$',
76+
r'^(https?:\/\/)?(www\.|m\.|music\.)?(youtube\.com|youtu\.be)\/.*(list=([a-zA-Z0-9_-]+)).*$',
7777
);
7878

7979
final RegExp _youtubePlaylistIdRegExp = RegExp('[&?]list=([a-zA-Z0-9_-]+)');

0 commit comments

Comments
 (0)