diff options
author | Roel Spilker <r.spilker@gmail.com> | 2020-05-14 21:28:19 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-05-14 21:28:19 +0200 |
commit | 8ba6d4b0ea661fd6c701fed56212ecc9c4acabb2 (patch) | |
tree | caedae836a2c1212d08eece3e9ae5b3115ba29fe /src/installer | |
parent | d54b360af9bdd66885badb80007d6839ea9d48f8 (diff) | |
download | lombok-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.java | 2 |
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; |