mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-04 00:00:51 -04:00
Remove all leading dots and spaces
This commit is contained in:
@@ -68,6 +68,6 @@ describe "sanitize_filename" do
|
||||
end
|
||||
it "sanitizes correctly" do
|
||||
sanitize_filename(".. \n\v.\rマンゴー/|*()<[1/2] 3.14 hello world ")
|
||||
.should eq " . マンゴー_()[1_2] 3.14 hello world"
|
||||
.should eq "マンゴー_()[1_2] 3.14 hello world"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user