diff --git a/slack-pixiv/commands/pixiv.rb b/slack-pixiv/commands/pixiv.rb index e8f5f5c..4ded290 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -13,8 +13,9 @@ module SlackMathbot # Create iOS Illustration URL, regex pixiv_url to # extract numbers only, such as /^[0-9]+$/ - ios_url = "pixiv://illusts/" + pixiv_url.split("illust_id=")[-1] - puts ios_url + #ios_url = "pixiv://illusts/" + pixiv_url.split("illust_id=")[-1] + ios_url = "pixiv://illusts/" + pixiv_url[/\d+/] + puts ios_url # TODO: Create iOS Member URL, must find correct URL scheme