Skip to content

Fix privacy-sensitive link markup - #898

Merged
MrSkwiggs merged 2 commits into
Ignite-Swift:mainfrom
antoon-derijcke:bug/privacy-protected-link-typo
Nov 19, 2026
Merged

MrSkwiggs merged 2 commits into
Ignite-Swift:mainfrom
antoon-derijcke:bug/privacy-protected-link-typo

Conversation

@antoon-derijcke

Copy link
Copy Markdown
Contributor

Fixes a missing opening < bracket in Link.renderPrivacyProtectedLink() when using .privacySensitive(), updates PrivacySensitiveTests to verify the rendered tag prefix.

SCR-20261115-ozti

let element = Link("Go Home", target: "/").privacySensitive(encoding)
let output = element.markupString()

#expect(output.starts(with: "<a "))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be more sensible here to expect the complete output to match a pre-defined raw String, then there's no missing any formatting of any sort

@MrSkwiggs

Copy link
Copy Markdown
Collaborator

Thanks for the contribution @antoon-derijcke! This looks good to me, I'd just want to make sure the test that comes with it makes sense. If you can quickly fix this I'll be happy to merge

@MrSkwiggs MrSkwiggs self-assigned this Nov 16, 2026
@antoon-derijcke

Copy link
Copy Markdown
Contributor Author

Hi @MrSkwiggs , applied the requested changes 🙂

@MrSkwiggs
MrSkwiggs enabled auto-merge November 19, 2026 11:27
@MrSkwiggs

Copy link
Copy Markdown
Collaborator

@antoon-derijcke Thanks! I've set this to auto-merge if all checks pass. Thanks for the contribution 🙏

@MrSkwiggs
MrSkwiggs merged commit 5e185d6 into Ignite-Swift:main Nov 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants