We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99d5146 commit f606d47Copy full SHA for f606d47
1 file changed
script/content-migrations/update-developer-site-links.js
@@ -65,8 +65,7 @@ async function main () {
65
// first replace the old link with the new link
66
// then remove any trailing slashes
67
newContent = newContent
68
- .replace(devLink, newLink)
69
- .replace(`${newLink}/`, newLink)
+ .replace(new RegExp(`${devLink}/?(?=\\))`), newLink)
70
}
71
72
fs.writeFileSync(file, frontmatter.stringify(newContent, data, { lineWidth: 10000 }))
0 commit comments