Regex changes
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
This commit is contained in:
parent
1c819e692e
commit
d3879635a8
|
@ -47,7 +47,7 @@ module.exports = Self => {
|
|||
if (!image) return;
|
||||
|
||||
const srcFile = image.url;
|
||||
const fileName = srcFile.replace(/\.|\/|:/g, '');
|
||||
const fileName = srcFile.replace(/\.|\/|:|\?|\\/g, '');
|
||||
const file = `${fileName}.png`;
|
||||
const filePath = path.join(tempPath, file);
|
||||
|
||||
|
|
Loading…
Reference in New Issue