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 URL encoding for space characters #57

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

gplusplus314
Copy link
Contributor

I ran into this one while using #56 , but this should improve general compatibility for anything that needs URI encoding. Turns out, encoding URIs in Lua is kind of a pain. Didn't know that. But this seems to do the trick for all the edge cases I personally have.

TLDR here is that %20 is always a safe encoding for a space character, regardless of where it is in the raw URL string, but + is interpreted as a literal if it's in a query param value.

Copy link
Owner

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

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

Thanks @gerryhernandez!

@epwalsh epwalsh merged commit af986a0 into epwalsh:main Nov 25, 2022
flaviosakakibara pushed a commit to flaviosakakibara/obsidian.nvim that referenced this pull request Sep 5, 2023
* fix: don't check third party for Lua LSP

Co-authored-by: Sean <44933921+seantwie03@users.noreply.github.com>
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Co-authored-by: Sean <44933921+seantwie03@users.noreply.github.com>
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