Skip to content

Commit

Permalink
fix(rich-text-types): entry hyperlink validation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishelgert committed Oct 28, 2024
1 parent f71fae3 commit 1108e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rich-text-types/src/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const nodeValidator: Record<Node['nodeType'], NodeAssertion<any>> = {
[INLINES.HYPERLINK]: new HyperLinkAssertion(),
[INLINES.EMBEDDED_ENTRY]: assertVoidEntryLink,
[INLINES.EMBEDDED_RESOURCE]: assertLink('Contentful:Entry', VOID_CONTENT),
[INLINES.ENTRY_HYPERLINK]: assertLink('Entry', ['§']),
[INLINES.ENTRY_HYPERLINK]: assertLink('Entry', ['text']),
[INLINES.ASSET_HYPERLINK]: assertLink('Asset', ['text']),
[INLINES.RESOURCE_HYPERLINK]: assertLink('Contentful:Entry', ['text']),
};
Expand Down

0 comments on commit 1108e4f

Please sign in to comment.