Skip to content

Commit

Permalink
fix: πŸ› handle file names with special characters
Browse files Browse the repository at this point in the history
βœ… Closes: 45
  • Loading branch information
nivekcode committed Oct 31, 2020
1 parent 3fe72da commit 475c333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/converters/shared.converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const filesProcessor = async (conversionOptions): Promise<SvgDefinition[]
filePaths.map(
async (filePath): Promise<SvgDefinition | null> => {
let svgDefinition: SvgDefinition = null;
const fileNameWithEnding = path.basename(filePath);
const fileNameWithEnding = path.basename(filePath).replace(`'`, '');
const [filenameWithoutEnding, extension] = fileNameWithEnding.split('.');
if (extension === 'svg') {
const rawSvg = await extractSvgContent(filePath);
Expand Down

0 comments on commit 475c333

Please sign in to comment.