Browse Source

Fixed regex syntax

master
Ryan Hammett 8 years ago
parent
commit
5c8b1f9a37
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

@ -15,7 +15,7 @@ module SlackMathbot
# ios_url = "pixiv://illusts/" + pixiv_url.split("illust_id=")[-1]
illust_url = pixiv_url.split("illust_id=")[-1]
puts illust_url
ios_url = "pixiv://illusts/" + illust_url.slice(^[0-9]+$)
ios_url = "pixiv://illusts/" + illust_url.slice(/^[0-9]+$/)
puts ios_url
# TODO: Create iOS Member URL, must find correct URL scheme

Loading…
Cancel
Save