Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent document links from accidentally being resolved to your entire document #639

Merged

Conversation

DaelonSuzuka
Copy link
Collaborator

Fixes #621

The document link provider used a regex that could accidentally consume your entire document.

This fix makes the pattern end at a newline, so the most it could consume is the rest of the current line.

I would prefer to make this behavior more restricted, but I don't see a clean way to do that right now.

@DaelonSuzuka DaelonSuzuka merged commit 019d87e into godotengine:master Apr 17, 2024
4 checks passed
@DaelonSuzuka DaelonSuzuka deleted the fix-aggressive-document-links branch April 17, 2024 16:45
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.

Resource paths in comments are being incorrectly identified as links
1 participant