aboutsummaryrefslogtreecommitdiff
path: root/src/installer
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2020-05-14 21:28:19 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-05-14 21:28:19 +0200
commit8ba6d4b0ea661fd6c701fed56212ecc9c4acabb2 (patch)
treecaedae836a2c1212d08eece3e9ae5b3115ba29fe /src/installer
parentd54b360af9bdd66885badb80007d6839ea9d48f8 (diff)
downloadlombok-8ba6d4b0ea661fd6c701fed56212ecc9c4acabb2.tar.gz
lombok-8ba6d4b0ea661fd6c701fed56212ecc9c4acabb2.tar.bz2
lombok-8ba6d4b0ea661fd6c701fed56212ecc9c4acabb2.zip
Add more characters not to escape on Windows. Fixes #2435
Diffstat (limited to 'src/installer')
-rw-r--r--src/installer/lombok/installer/IdeLocation.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/installer/lombok/installer/IdeLocation.java b/src/installer/lombok/installer/IdeLocation.java
index c3853867..6b9a94c6 100644
--- a/src/installer/lombok/installer/IdeLocation.java
+++ b/src/installer/lombok/installer/IdeLocation.java
@@ -66,7 +66,7 @@ public abstract class IdeLocation {
}
private static final String LEGAL_PATH_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_/";
- private static final String LEGAL_PATH_CHARS_WINDOWS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_/:\\ ";
+ private static final String LEGAL_PATH_CHARS_WINDOWS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,/;'[]{}!@#$^&()-_+= :\\";
public static String escapePath(String path) {
StringBuilder out = new StringBuilder();
String legalChars = OsUtils.getOS() == OsUtils.OS.UNIX ? LEGAL_PATH_CHARS : LEGAL_PATH_CHARS_WINDOWS;