mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-04 20:05:29 -04:00
Merge branch 'fix/mangadex-slash' into dev
This commit is contained in:
commit
45cdfd5306
@ -68,4 +68,9 @@ describe Rule do
|
||||
.should eq "Ch. CH ID testing"
|
||||
rule.render({} of String => String).should eq "testing"
|
||||
end
|
||||
|
||||
it "escapes slash" do
|
||||
rule = Rule.new "{id}"
|
||||
rule.render({"id" => "/hello/world"}).should eq "_hello_world"
|
||||
end
|
||||
end
|
||||
|
@ -135,7 +135,9 @@ module Rename
|
||||
else
|
||||
e.render hash
|
||||
end
|
||||
end.join.strip
|
||||
end.join
|
||||
.strip
|
||||
.gsub("/", "_")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user