Open m.youtube links (#50)

This commit is contained in:
vfsfitvnm
2022-06-19 10:59:51 +02:00
parent f7738cde95
commit f7a6481323
2 changed files with 9 additions and 1 deletions

View File

@@ -110,7 +110,7 @@ fun SearchScreen(
val coroutineScope = rememberCoroutineScope()
val isOpenableUrl = remember(textFieldValue.text) {
Regex("""https://(music|www)\.youtube.com/(watch|playlist).*""").matches(textFieldValue.text)
Regex("""https://(music|www|m)\.youtube.com/(watch|playlist).*""").matches(textFieldValue.text)
}
LaunchedEffect(Unit) {