This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Replace percent-encoded characters in URL Code Hint List with regular characters #5677
Closed
Closed
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7113d08
Remove string encoding from Hint List and add it to Hint Insert
lkcampbell d1a8d24
Check for partial and invalid encoded characters in URI
lkcampbell 4e66521
For #5068, when autoindenting, only insert a tab if the cursor doesn'…
1445eb3
Updated by ALF automation.
walfgithub a22c85d
Merge pull request #5825 from adobe/alf_localization
redmunds 530a1e0
Merge pull request #5815 from adobe/nj/issue-5068
redmunds 70b2803
Merge pull request #5793 from SAPlayer/find-in-files-focus
redmunds 788ab1a
Merge remote-tracking branch 'origin/5357-fix' into 5357-fix
lkcampbell 159a765
If first character is partially encoded, don't strip it off
lkcampbell 47086fc
Rollback matching of manually entered percent-encoded characters
lkcampbell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might need a better function name. Couldn't think of a good one that encompassed exactly what this function does, which is that it makes sure that any partial, or complete, percent-encoded URIs an end user manually enters into the editor matches the hint list as best it can, without making decodeURI() throw an exception.
A percent sign could be literal ("100% cool.html"), or it could be part of a percent-encoded character ("%20" space character), or it could be a Unicode character encoding ("%C3%A7" ç character). Users will rarely be manually typing percent-encoded characters into the editor, so I used a fairly simple heuristic that performs adequately enough.