-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Add an option to allow disabling ampersand escaping #74
Add an option to allow disabling ampersand escaping #74
Conversation
Can't we just handle this automatically, so it only escapes on URLs? I prefer no options whenever possible. Every option added is a lot of wasted time for consumer needing to understand the implications and whether they need it. |
@sindresorhus I looked and asked around and I can't figure out for sure if it's just URLs that need the "&" escaped. Are you OK with a basic "if it's an http:// or https:// string, escape, else, don't" style logic? |
What about skipping the escaping and wrapping it in double quotes instead? Maybe that will be the same as escaping them though. I don't have access to Windows so can't test. |
@MarshallOfSound Can you provide a filename to test? I create a file named |
@MarshallOfSound @sindresorhus I had test these targets on Windows 7:
Finally, I got 3 conclusions:
|
See sindresorhus#74 comments.
Closing this in favor of #98 |
We've found when launching files with a "&" in their filename this escaping breaks the launch. (Windows throws a could not find file error). This PR just adds an option to allow disabling the escaping 👍