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

fix: check scheme when pasting a link #462

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

poppingmoon
Copy link
Owner

#375 was intended to work only when pasting a url, but Uri.tryParse() actually parses a text without a scheme, making normal text wrapped in a link syntax. This PR fixes the problem by checking if the parsed url has an http or https scheme.

@poppingmoon poppingmoon merged commit 04cfd12 into main Oct 30, 2024
14 checks passed
@poppingmoon poppingmoon deleted the link-paste-check-scheme branch October 30, 2024 15:30
@poppingmoon poppingmoon mentioned this pull request Nov 9, 2024
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.

1 participant