From ba77cb449948bab30cdd8ec85f67eb496ea46cc7 Mon Sep 17 00:00:00 2001 From: Ryan Hammett Date: Mon, 1 Feb 2016 15:59:04 -0500 Subject: [PATCH] More regex breaking --- slack-pixiv/commands/pixiv.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slack-pixiv/commands/pixiv.rb b/slack-pixiv/commands/pixiv.rb index 7c7f565..3fd198f 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -12,8 +12,9 @@ module SlackMathbot puts pixiv_url # Create iOS Illustration URL - # ios_url = "pixiv://illusts/" + pixiv_url.split("illust_id=")[-1] - ios_url = "pixiv://illusts/" + pixiv_url.slice(/(^[0-9]+$)/) + splitter = "pixiv://illusts/" + pixiv_url.split("illust_id=")[-1] + puts splitter + ios_url = splitter.slice(/(^[0-9]+$)/) puts ios_url