mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
ignore spelling if *word*
This commit is contained in:
parent
b253aa871c
commit
b0d82acf77
@ -4,7 +4,7 @@ var spelling = function(dbot) {
|
||||
|
||||
return {
|
||||
'listener': function(data, params) {
|
||||
var q = data.message.valMatch(/^\*\*?([\d\w\s]*)/, 2);
|
||||
var q = data.message.valMatch(/^\*\*?([\d\w\s]*)[^*]/, 2);
|
||||
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)/, 3);
|
||||
if(q) {
|
||||
var correction = q[1];
|
||||
|
Loading…
Reference in New Issue
Block a user