aboutsummaryrefslogtreecommitdiff
path: root/examples/nword.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nword.js')
-rw-r--r--examples/nword.js4
1 files changed, 1 insertions, 3 deletions
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){