From b62c8fd41cf32ea33de9d4f74415c665d315ecb1 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Thu, 16 Jul 2020 20:48:14 -0400 Subject: search.js uses `space` regexes now, improving nword match --- examples/nword.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/nword.js') diff --git a/examples/nword.js b/examples/nword.js index 5926e42..9367362 100644 --- a/examples/nword.js +++ b/examples/nword.js @@ -38,9 +38,7 @@ main.on('tileUpdate', (send, source, tiles)=>{ } }); -search.match(new Space().adhoc('nigger'), clean); -search.match(new Space().adhoc('Nigger'), clean); -search.match(new Space().adhoc('NIGGER'), clean); +search.match(['[Nn] *[Ii] *[Gg] *[Gg] *[Ee] *[Rr]'], clean); let response = new Space().adhoc(' I am a racist '); function clean(coord, send){ -- cgit