Bladeren bron

Revert "Replace colons with dashes in internal URL paths"

This reverts commit d51a6f904265352a0d38a1ac41740c4a8e410cf4.
Thibaut 11 jaren geleden
bovenliggende
commit
c68133eb8c
2 gewijzigde bestanden met toevoegingen van 0 en 5 verwijderingen
  1. 0 1
      lib/docs/filters/core/normalize_paths.rb
  2. 0 4
      test/lib/docs/filters/core/normalize_paths_test.rb

+ 0 - 1
lib/docs/filters/core/normalize_paths.rb

@@ -34,7 +34,6 @@ module Docs
 
     def normalize_path(path)
       path = path.downcase
-      path.gsub! ':', '-'
 
       if path == '.'
         'index'

+ 0 - 4
test/lib/docs/filters/core/normalize_paths_test.rb

@@ -55,10 +55,6 @@ class NormalizePathsFilterTest < MiniTest::Spec
     it "returns 'test' with 'test.html'" do
       assert_equal 'test', filter.normalize_path('test.html')
     end
-
-    it "returns 'te-st' with 'te:st'" do
-      assert_equal 'te-st', filter.normalize_path('te:st')
-    end
   end
 
   before do