Skip to content
Permalink
Browse files

Support multilines pattern

  • Loading branch information...
r7kamura committed Apr 22, 2015
1 parent b116bf5 commit 445b707865ac11dfc669e41d397c109a5aa91f6f
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ruboty/handlers/alias.rb
@@ -4,7 +4,7 @@ class Alias < Base
NAMESPACE = "alias"

on(
/alias (?<from>.+?) -> (?<to>.+)\z/,
/alias (?<from>.+?) -> (?<to>.+)\z/m,
description: "Create alias message",
name: "create",
)
@@ -16,7 +16,7 @@ class Alias < Base
)

on(
/delete alias (?<from>.+)\z/,
/delete alias (?<from>.+)\z/m,
description: "Delete alias",
name: "delete",
)

0 comments on commit 445b707

Please sign in to comment.
You can’t perform that action at this time.