Skip to content

Don't extract links as arbitrary properties#17129

Merged
RobinMalfait merged 2 commits into
mainfrom
fix/dont-extract-md-urls
Mar 11, 2025
Merged

Don't extract links as arbitrary properties#17129
RobinMalfait merged 2 commits into
mainfrom
fix/dont-extract-md-urls

Conversation

@philipp-spiess

@philipp-spiess philipp-spiess commented Mar 11, 2025

Copy link
Copy Markdown
Contributor

Closes #17128

This PR prevents extraction of links inside square brackets as valid candidate:

[https://example/]

We do this by throwing out arbitrary properties when the value starts with a slash (/).

Test plan

  • Added unit test

@philipp-spiess philipp-spiess requested a review from a team as a code owner March 11, 2025 14:55
@philipp-spiess philipp-spiess force-pushed the fix/dont-extract-md-urls branch from 98cc915 to 7a5b6ab Compare March 11, 2025 14:56
Comment thread crates/oxide/src/extractor/arbitrary_property_machine.rs Outdated
Comment thread crates/oxide/src/extractor/arbitrary_property_machine.rs Outdated
@RobinMalfait RobinMalfait enabled auto-merge (squash) March 11, 2025 16:37
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.

Bug: [url] in typescript comments causing Unclosed block errors

2 participants