Browse Source

Breaking things, bad at regex

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

+ 1
- 1
slack-pixiv/commands/pixiv.rb View File

@ -13,7 +13,7 @@ module SlackMathbot
# Create iOS Illustration URL
# ios_url = "pixiv://illusts/" + pixiv_url.split("illust_id=")[-1]
ios_url = "pixiv://illusts/" + pixiv_url.to_s.slice(/^[0-9]+$/)
ios_url = "pixiv://illusts/" + pixiv_url.slice(/(^[0-9]+$)/)
puts ios_url

Loading…
Cancel
Save