File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
browserstack-report-action Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -38236,6 +38236,7 @@ class ReportProcessor {
3823638236 if (addToSummaryReport) {
3823738237 addToSummaryReport = `<html>${addToSummaryReport}</html>`;
3823838238 addToSummaryReport = addToSummaryReport.replace(/[\u201C\u201D]/g, '"');
38239+ addToSummaryReport = addToSummaryReport.replace(/"(target="_blank")/g, '" $1');
3823938240 core.info(`Report HTML: ${addToSummaryReport}`);
3824038241 await summary.addRaw(addToSummaryReport, false);
3824138242 } else {
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ class ReportProcessor {
1414 let addToSummaryReport = this . reportData ?. report ?. basicHtml ;
1515 if ( addToSummaryReport ) {
1616 addToSummaryReport = `<html>${ addToSummaryReport } </html>` ;
17- //remove curly quotes with normal double quotes
1817 addToSummaryReport = addToSummaryReport . replace ( / [ \u201C \u201D ] / g, '"' ) ;
18+ addToSummaryReport = addToSummaryReport . replace ( / " ( t a r g e t = " _ b l a n k " ) / g, '" $1' ) ;
1919 core . info ( `Report HTML: ${ addToSummaryReport } ` ) ;
2020 await summary . addRaw ( addToSummaryReport , false ) ;
2121 } else {
You can’t perform that action at this time.
0 commit comments