Skip to content

Commit

Permalink
fix: JavaScript refactoring and fixes for test runs support
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev committed Sep 13, 2024
1 parent 76da771 commit 89fb73f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class ExportContext {

function getPath(locationHash, scope) {
if (scope) {
const pathPattern = /project\/[^\/]+\/(wiki\/([^?#]+)|testruns|testrun)/;
const pathPattern = /project\/[^/]+\/(wiki\/([^?#]+)|testruns|testrun)/;
const pathMatch = pathPattern.exec(locationHash);
const extractedPath = pathMatch ? (pathMatch[2] || pathMatch[1]) : undefined;
return pathMatch ? addDefaultSpaceIfRequired(extractedPath) : undefined;
Expand Down

0 comments on commit 89fb73f

Please sign in to comment.