Skip to content

Instantly share code, notes, and snippets.

@bt4R9
Created August 28, 2013 19:38
Show Gist options
  • Save bt4R9/6370317 to your computer and use it in GitHub Desktop.
Save bt4R9/6370317 to your computer and use it in GitHub Desktop.
var a = ["podorozhny.ru", "shantours.ru", "iv-multi.ru", "yaroslavna.kiev.ua", "makemoney.su", "u8988.zoom.vps-private.net", "english-voice.ru", "parfumaniya.com.ua", "elchin.info", "turklr.com", "rkreal.ru", "last-tv.ru", "intufa.ru", "kdramacafe.ru", "m-profstyle.com", "bogatoe.info", "msadakov.com", "megaconsulting.ru", "rubags.ru", "tablog.ru", "flashells.com", "egodesign.com.ua", "citroenblog.ru", "enledsys.ru", "mango.do", "5004430.ru", "eberspacher.net.ru", "sro-status.ru", "laculotte.ru", "ghirin.ru", "evolution-trek.com", "mirbaladi.ru", "belyaevka.info", "zugdidi.us", "mosexpodental.com", "mediotehna.hr", "bartfai.hu", "itravelself.com", "luxury-treatments.ru", "mastersland.com", "interpretitsolutions.com", "fattahi.me im", "daniil-i.com", "napoli1.com", "klaid.su", "ium.ru", "safarisvadba.ru", "baltrunas.ru", "moya-krasa.ru", "gatetokorea.ru", "websys.co", "nurzhique.com", "epicar.ru", "csource.ru", "vpnglobe.com", "irben.id.lv", "acor-cannes.fr", "kivi-salon.ru", "scorehelp.net", "oioki.ru", "coffea.com.ua", "destrella.mx", "adnan.my", "gc-angry.ru", "aurafinance.ru", "farmak.net", "feilijia.tk", "ru116.ru", "doclinker.com", "lampada.in.ua", "cityurbanlimo.com", "emoney.name", "volov1.ru", "lavka-rybaka.com", "embrussia.ru", "bcatshop.ru", "paintbrush.ro", "slon-tea.ru", "online.sebastopol.ua", "katerina.se", "weirdanimals.ru", "socpops.com", "rent-room-pattaya.ru", "hrustyle.ru", "didar.ru", "kida-lo-vo.name", "vitalain.ru", "yongming.ru", "granit-m.com.ua", "505.su ug", "balkov.net", "7ya.uz", "shtory-svoimi-rukami.ru", "emzdon.ru", "seo-expertonline.com", "virusamnet.ru"];
var b = ['www.mail','xn--80a1acny','mail']
var regexp = /^(www\.mail\.|mail\.|xn--80a1acny\.)/
for (var i = 0, l = a.length; i < l; i++) {
for (var j = 0, ll = b.length; j < ll; j++) {
var d = b[j] + '.' + a[i];
var dd = d.replace(regexp, '');
var ddd = dd.indexOf('mail') === 0 || dd.indexOf('www.mail') === 0 || dd.indexOf('xn--80a1acny') === 0;
console.log(d, dd, 'test: ' + !ddd);
if (ddd) {
console.log('FAIL!!!! ' + dd);
}
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment