Skip to content

Commit

Permalink
Update packages/storybook-addon-designs/src/manager/components/Figma.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld authored May 29, 2024
1 parent 34721f5 commit 2b4de44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IFrame } from "./IFrame";
import { FigmaConfig, IFrameConfigBase } from "../../config";

export const figmaURLPattern =
/https:\/\/[\w\.-]+\.?figma.com\/([\w-]+)\/([0-9a-zA-Z]{22,128})(?:\/.*)?$/;
/https:\/\/[\w.-]+\.?figma.com\/([\w-]+)\/([0-9a-zA-Z]{22,128})(?:\/.*)?$/;

export const isFigmaURL = (url: string) => figmaURLPattern.test(url);

Expand Down

0 comments on commit 2b4de44

Please sign in to comment.