Skip to content

Commit fc18a1b

Browse files
committed
fix the regex
1 parent a2a8437 commit fc18a1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

script/update-internal-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async function main () {
122122

123123
// We need to preserve fragments and hardcoded versions if any are found.
124124
fragmentMatch = oldLink.match(/(#.*$)/)
125-
versionMatch = oldLink.match(/(enterprise-server[/@].*?)\//)
125+
versionMatch = oldLink.match(/(enterprise-server(?:@.[^\/]*?)?)\//)
126126

127127
// Remove the fragment for now.
128128
linkToCheck = linkToCheck

0 commit comments

Comments
 (0)