From 5a5f44368e79fd77ee72fab6d100331929054d4e Mon Sep 17 00:00:00 2001 From: Ryan Hammett Date: Sat, 23 Jan 2016 19:23:38 -0500 Subject: [PATCH] Changed URL split --- 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 19ea8a2..b7705c6 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -16,7 +16,7 @@ module SlackMathbot puts ios_url # Create iOS Member URL - ios_mem_url = "pixiv://member/" + pixiv_url.split('=')[0..-1] + ios_mem_url = "pixiv://member/" + pixiv_url.split('=')[-2] puts ios_mem_url # Scrape page title