Added support for 'deezer.page.link' urls
This commit is contained in:
parent
39f92391dc
commit
e192011f31
File diff suppressed because one or more lines are too long
@ -21,7 +21,7 @@ export function isValidURL(text) {
|
|||||||
let lowerCaseText = text.toLowerCase()
|
let lowerCaseText = text.toLowerCase()
|
||||||
|
|
||||||
if (lowerCaseText.startsWith('http')) {
|
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
|
return true
|
||||||
}
|
}
|
||||||
} else if (lowerCaseText.startsWith('spotify:')) {
|
} else if (lowerCaseText.startsWith('spotify:')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user