forked from GitHub/dbot
		
	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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Psychedelic Squid
						Psychedelic Squid