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