Skip to content

Commit

Permalink
Fix: Adapt to Figma's New Link Structure for Embedding Design Previews (
Browse files Browse the repository at this point in the history
outline#6946)

Co-authored-by: RenderCoder <[email protected]>
  • Loading branch information
2 people authored and moarsoarse committed May 27, 2024
1 parent 749835d commit 0a92c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/editor/embeds/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const embeds: EmbedDescriptor[] = [
keywords: "design svg vector",
regexMatch: [
new RegExp(
"^https://([w.-]+\\.)?figma\\.com/(file|proto)/([0-9a-zA-Z]{22,128})(?:/.*)?$"
"^https://([w.-]+\\.)?figma\\.com/(file|proto|design)/([0-9a-zA-Z]{22,128})(?:/.*)?$"
),
],
transformMatch: (matches) =>
Expand Down

0 comments on commit 0a92c01

Please sign in to comment.