From 5c8b1f9a37ec0c154bddffc41d6de0c21e8d2e19 Mon Sep 17 00:00:00 2001 From: Ryan Hammett Date: Mon, 1 Feb 2016 15:37:37 -0500 Subject: [PATCH] Fixed regex syntax --- slack-pixiv/commands/pixiv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slack-pixiv/commands/pixiv.rb b/slack-pixiv/commands/pixiv.rb index f449c60..29e47ae 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -15,7 +15,7 @@ module SlackMathbot # ios_url = "pixiv://illusts/" + pixiv_url.split("illust_id=")[-1] illust_url = pixiv_url.split("illust_id=")[-1] puts illust_url - ios_url = "pixiv://illusts/" + illust_url.slice(^[0-9]+$) + ios_url = "pixiv://illusts/" + illust_url.slice(/^[0-9]+$/) puts ios_url # TODO: Create iOS Member URL, must find correct URL scheme