Skip to content

Commit

Permalink
fix: Replace unsafe characters in screenshot file names (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend authored Mar 11, 2024
1 parent ef7bc91 commit a6070d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/visual-diff-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function tryMoveFile(srcFileName, destFileName) {

function extractTestPartsFromName(name) {
name = name.toLowerCase();
const parts = name.split(' ');
const parts = name.split(/[\s*"/\\<>:|?]/);
if (parts.length > 1) {
let dirName = parts.shift();
if (dirName.startsWith('d2l-')) {
Expand Down

0 comments on commit a6070d0

Please sign in to comment.