1
0
mirror of synced 2025-12-21 19:06:49 -05:00

fix the regex

This commit is contained in:
Sarah Schneider
2021-03-02 15:11:31 -05:00
parent a2a8437606
commit fc18a1b6ea

View File

@@ -122,7 +122,7 @@ async function main () {
// We need to preserve fragments and hardcoded versions if any are found.
fragmentMatch = oldLink.match(/(#.*$)/)
versionMatch = oldLink.match(/(enterprise-server[/@].*?)\//)
versionMatch = oldLink.match(/(enterprise-server(?:@.[^\/]*?)?)\//)
// Remove the fragment for now.
linkToCheck = linkToCheck