Skip to content

Commit

Permalink
fix: Escape quotes in icon id
Browse files Browse the repository at this point in the history
Merge fix quote
  • Loading branch information
tancredi committed May 15, 2021
2 parents 87f8157 + 5b05938 commit 6595000
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/icon-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ import slug from 'slugify';

export const getIconId: GetIconIdFn = ({ relativeFilePath }) =>
slug(removeExtension(relativeFilePath).replace(/(\/|\\|\.)+/g, '-'), {
replacement: '-'
replacement: '-',
remove: /['"`]/g
});

0 comments on commit 6595000

Please sign in to comment.