mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-05 12:25:32 -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"
|
.should eq "Ch. CH ID testing"
|
||||||
rule.render({} of String => String).should eq "testing"
|
rule.render({} of String => String).should eq "testing"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "escapes slash" do
|
||||||
|
rule = Rule.new "{id}"
|
||||||
|
rule.render({"id" => "/hello/world"}).should eq "_hello_world"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -135,7 +135,9 @@ module Rename
|
|||||||
else
|
else
|
||||||
e.render hash
|
e.render hash
|
||||||
end
|
end
|
||||||
end.join.strip
|
end.join
|
||||||
|
.strip
|
||||||
|
.gsub("/", "_")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user