Skip to content

Commit

Permalink
misc: remove duplicate colon from regex (#9295)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatOnTheBack authored and brendankenny committed Jun 27, 2019
1 parent de820ec commit 1ab2929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-core/lib/file-namer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function getFilenamePrefix(lhr) {

const filenamePrefix = `${hostname}_${dateStr}_${timeStr}`;
// replace characters that are unfriendly to filenames
return filenamePrefix.replace(/[/?<>\\:*|":]/g, '-');
return filenamePrefix.replace(/[/?<>\\:*|"]/g, '-');
}

// don't attempt to export in the browser.
Expand Down

0 comments on commit 1ab2929

Please sign in to comment.