Skip to content

Commit

Permalink
fix: fixed github icon api route issue (lucide-icons#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
jguddas authored Apr 19, 2023
1 parent 4679ff7 commit 49bd49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/components/SvgPreview/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const getCommands = (src: string) =>
);

export const getPaths = (src: string) => {
const commands = getCommands(src);
const commands = getCommands(src.includes('<svg') ? src : `<svg>${src}</svg>`);
const paths: Path[] = [];
let prev: Point | undefined = undefined;
let start: Point | undefined = undefined;
Expand Down

0 comments on commit 49bd49b

Please sign in to comment.