Skip to content

Commit 7595558

Browse files
committed
fix: Fix href replacement logic
This bug in introduced in #108. The replacement logic doesn't work since it includes escaped double quote.
1 parent 11a091f commit 7595558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def generate_src(target_version: nil)
7373

7474
# Replace absolute path in navigation.html
7575
content = File.read('navigation.html')
76-
content.gsub!('<a href=\"/', "<a href=\"/#{target_version}/")
76+
content.gsub!('<a href="/', "<a href=\"/#{target_version}/")
7777
File.write('navigation.html', content)
7878
end
7979
end

0 commit comments

Comments
 (0)