diff --git a/extensions/fontawesome/CHANGELOG.md b/extensions/fontawesome/CHANGELOG.md index 75d144870c..b4f957a14e 100644 --- a/extensions/fontawesome/CHANGELOG.md +++ b/extensions/fontawesome/CHANGELOG.md @@ -1,5 +1,9 @@ # Font Awesome Changelog +## [Fixed the issue with the copied icon SVG] - 2024-06-26 + +- Fixed issue with icon "Copy as SVG" copies [object Object] onto the clipboard instead of the SVG. + ## [Added fuzzy search and icon style and family selection] - 2024-06-02 - Search command now uses Font Awesome's official graphql APIs to support fuzzy search. It is now faster, more accurate and shows similar icons to your query. diff --git a/extensions/fontawesome/package.json b/extensions/fontawesome/package.json index c3378eb3ec..99714b8c2b 100644 --- a/extensions/fontawesome/package.json +++ b/extensions/fontawesome/package.json @@ -7,7 +7,8 @@ "author": "dutzi", "contributors": [ "GLaDO8", - "danielferguson" + "danielferguson", + "ridemountainpig" ], "categories": [ "Design Tools", diff --git a/extensions/fontawesome/src/utils.tsx b/extensions/fontawesome/src/utils.tsx index a6641c0d97..de9e74f231 100644 --- a/extensions/fontawesome/src/utils.tsx +++ b/extensions/fontawesome/src/utils.tsx @@ -3,7 +3,7 @@ import { Clipboard, showHUD, ActionPanel, Action } from '@raycast/api'; export const copySvgToClipboard = async (icon: SearchItem) => { // Since v6, Font Awesome stopped setting the SVGs fill color to currentColor, this restores that behavior. - const svgWithCurrentColor = icon.svgs[0].toString().replace(/