Browse Source

More regex breaking

master
Ryan Hammett 9 years ago
parent
commit
ba77cb4499
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      slack-pixiv/commands/pixiv.rb

+ 3
- 2
slack-pixiv/commands/pixiv.rb View File

@ -12,8 +12,9 @@ module SlackMathbot
puts pixiv_url puts pixiv_url
# Create iOS Illustration 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 puts ios_url

Loading…
Cancel
Save