Skip to content

Commit 5f6a765

Browse files
not-an-aardvarkaladdin-add
authored andcommittedAug 2, 2018
Build: ensure URL fragments remain in documentation links (fixes #10717) (#10720)
1 parent 863aa78 commit 5f6a765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Makefile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ target.gensite = function(prereleaseVersion) {
745745
].join("\n");
746746

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.