mirror of
https://github.com/sdsykes/fastimage.git
synced 2025-09-20 00:01:59 -04:00
Merge pull request #117 from PikachuEXE/replace-deprecated-method-usage
Replace deprecated method usage
This commit is contained in:
commit
c57b07dc85
@ -9,3 +9,4 @@ rvm:
|
||||
- 2.4
|
||||
- 2.5
|
||||
- 2.6
|
||||
- 2.7
|
||||
|
@ -282,7 +282,7 @@ class FastImage
|
||||
begin
|
||||
URI(location)
|
||||
rescue URI::InvalidURIError
|
||||
URI.escape(location)
|
||||
::URI::DEFAULT_PARSER.escape(location)
|
||||
else
|
||||
location
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user