mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Revert "Replace colons with dashes in internal URL paths"
This reverts commit d51a6f9042
.
This commit is contained in:
parent
d1920bc05c
commit
c68133eb8c
2 changed files with 0 additions and 5 deletions
|
@ -34,7 +34,6 @@ module Docs
|
|||
|
||||
def normalize_path(path)
|
||||
path = path.downcase
|
||||
path.gsub! ':', '-'
|
||||
|
||||
if path == '.'
|
||||
'index'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue