fix get_tld missing in ItemDetail

pull/26/head
Nilesh 2022-06-07 11:22:31 +01:00
rodzic fe72a4a7a0
commit 497b662b2d
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -52,6 +52,10 @@
return wikiurl.replace('simple.wikipedia.org/','simple.m.wikipedia.org/').replace('en.wikipedia.org/','en.m.wikipedia.org/');
}
function get_tld(url){
return (new URL(url)).hostname.replace('www.','');
}
// function youtube_parser(url){
// var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
// var match = url.match(regExp);