lib/lita/handlers/wtf.rb in lita-wtf-1.0.0 vs lib/lita/handlers/wtf.rb in lita-wtf-1.0.1

- old
+ new

@@ -1,18 +1,18 @@ module Lita module Handlers class Wtf < Handler route( - /^wtf(?:\s+is)?\s(?<term>\w+)(?:\?)?/, + /^wtf(?:\s+is)?\s(?<term>[^\s@#]+)(?:\?)?/, :lookup, command: true, help: { t('help.wtf.syntax') => t('help.wtf.desc') } ) route( - /^define\s(?<term>\w+)\sis\s(?<definition>.+)$/, + /^define\s(?<term>[^\s@#]+)\sis\s(?<definition>[^#@]+)$/, :define, command: true, help: { t('help.define.syntax') => t('help.define.desc') }