mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
New regex in place, but the matching pattern changes a little, so I think it probably would break if nothing else is changed. Need to spin up a node server so I can test live.
This commit is contained in:
parent
a9a88723e3
commit
2f9af449ec
@ -36,7 +36,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']*)|([\d\w\s']*)\*\*?)$/, 2);
|
||||
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s']*)$/, 3);
|
||||
if(q) {
|
||||
correct(data, q[1], data.user, function (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user