How was the list of restricted characters for ensurePath
decided?
#21811
chopeen
started this conversation in
Suggest an Idea
Replies: 2 comments
-
I'll remove the regex check and let the os handle invalid chars tomorrow. it was added for more safety |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Type of discussion.
I just want to chat
Tell us more.
The original list of restricted characters was very broad, then some characters were un-restricted, but the current regex:
still prohibits some characters that are valid in paths in any major OS. I personally struggle with single quotes
'
, ampersands&
and hashes#
as they appear in quite a few repositories handled by our Renovate instance.The code quotes http://www.mtu.edu/umc/services/digital/writing/characters-avoid/, but this article talk about "web folders as well as for downloadable files", not source code.
What's the reason why
ensurePath
was added in #21433?What was the problem that needed to be solved?
Related PR: #21433, followed by:
@
inside paths #21476+$
inside paths #21482{}
inside paths #21530[]
in file paths #21625Beta Was this translation helpful? Give feedback.
All reactions