lib/lita/handlers/activedirectory.rb in lita-activedirectory-0.2.5 vs lib/lita/handlers/activedirectory.rb in lita-activedirectory-0.2.6
- old
+ new
@@ -9,17 +9,17 @@
config :group_basedn, required: true, type: String
config :username, required: true, type: String
config :password, required: true, type: String
route(
- /(is)\s+(\S+)\s+(locked(\?)?)/i,
+ /^(is)\s+(\S+)\s+(locked(\?)?)/i,
:user_locked?,
command: true,
help: { t('help.user_locked?.syntax') => t('help.user_locked?.desc') }
)
route(
- /(unlock)\s+(\S+)/i,
+ /^(unlock)\s+(\S+)/i,
:unlock,
command: true,
help: { t('help.unlock.syntax') => t('help.unlock.desc') }
)