This commit is contained in:
Kerwin Bryant 2025-01-14 03:38:14 +00:00
parent 9400d52ee9
commit abf95a76db

View File

@ -111,7 +111,7 @@ function extractPath(url) {
const path = urlObj.pathname; const path = urlObj.pathname;
// Define a regular expression to match "/{param1}/{param2}/src/{branch}/{main}/" // Define a regular expression to match "/{param1}/{param2}/src/{branch}/{main}/"
const regex = /^\/[^\/]+\/[^\/]+\/src\/[^\/]+\/[^\/]+\//; const regex = /^\/[^/]+\/[^/]+\/src\/[^/]+\/[^/]+\//;
// Use RegExp#exec() method to match the path // Use RegExp#exec() method to match the path
const match = regex.exec(path); const match = regex.exec(path);