Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!feeder3.eweka.nl!81.171.88.15.MISMATCH!eweka.nl!lightspeed.eweka.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2858322.J8yJCnqCVB@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 12 Apr 2013 00:51:16 +0200 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <7867864.kBbL0iy7tU@PointedEars.de> MIME-Version: 1.0 Lines: 27 NNTP-Posting-Date: 12 Apr 2013 00:51:16 CEST NNTP-Posting-Host: 74575f30.newsspool3.arcor-online.net X-Trace: DXC=SEkhdg1UGC=n`gW2MTm]<3McF=Q^Z^V384Fo<]lROoR18kF GarryJones wrote: >> Now I need to make a change. >> >> I can no longer allow users to use email addresses from a certain domain. >> >> How can I change the script to block all email addresses from >> @forbidden.* > > … > && !/@forbidden\.[^.]+$/.test(…) To fit your business logic, make that “&&” an “||” and remove the “!”. (AIUI, you wanted to allow for the dummy address in case of a forbidden [pseudo-]address.) if (!… || …) { … } -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.