This website works better with JavaScript.
Home
Explore
Help
Sign In
larke12
/
slack-pixiv-bot
Watch
1
Star
0
Fork
0
Code
Issues
4
Pull Requests
Projects
Releases
Wiki
Activity
Browse Source
test escaping url
For illust
master
Daniel Muckerman
6 years ago
parent
861d4b51ad
commit
2791023eb1
2 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
slack-pixiv.rb
+1
-0
slack-pixiv/commands/illust.rb
+ 1
- 0
slack-pixiv.rb
View File
@ -2,6 +2,7 @@ require 'slack-ruby-bot'
require
'wolfram'
require
'mechanize'
require
'nokogiri'
require
'uri'
require
'slack-pixiv/commands/illust'
require
'slack-pixiv/commands/member'
require
'slack-pixiv/app'
+ 1
- 0
slack-pixiv/commands/illust.rb
View File
@ -15,6 +15,7 @@ module SlackMathbot
else
pixiv_url
=
"
http://www.pixiv.net/member_illust.php
"
+
_match
[
:url
]
[
0
..
-
1
]
end
pixiv_url
=
URI
.
unescape
(
pixiv_url
)
puts
pixiv_url
# Create iOS Illustration URL, regex pixiv_url to
Write
Preview
Loading…
Cancel
Save