Skip to content

Commit

Permalink
Build: ensure URL fragments remain in documentation links (fixes #10717
Browse files Browse the repository at this point in the history
…) (#10720)
  • Loading branch information
not-an-aardvark authored and aladdin-add committed Aug 2, 2018
1 parent 863aa78 commit 5f6a765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ target.gensite = function(prereleaseVersion) {
].join("\n");

// 6. Remove .md extension for relative links and change README to empty string
text = text.replace(/\((?!https?:\/\/)([^)]*?)\.md.*?\)/g, "($1)").replace("README.html", "");
text = text.replace(/\((?!https?:\/\/)([^)]*?)\.md(.*?)\)/g, "($1$2)").replace("README.html", "");

// 7. Check if there's a trailing white line at the end of the file, if there isn't one, add it
if (!/\n$/.test(text)) {
Expand Down

0 comments on commit 5f6a765

Please sign in to comment.