Added support for 'deezer.page.link' urls

This commit is contained in:
RemixDev 2020-09-07 12:28:11 +02:00
parent 39f92391dc
commit e192011f31
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,7 @@ export function isValidURL(text) {
let lowerCaseText = text.toLowerCase()
if (lowerCaseText.startsWith('http')) {
if (lowerCaseText.indexOf('deezer.com') >= 0 || lowerCaseText.indexOf('open.spotify.com') >= 0) {
if (lowerCaseText.indexOf('deezer.com') >= 0 || lowerCaseText.indexOf('deezer.page.link') >= 0 || lowerCaseText.indexOf('open.spotify.com') >= 0) {
return true
}
} else if (lowerCaseText.startsWith('spotify:')) {