mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
Detector regexp for windows had a pointless grouping in it.
This commit is contained in:
1 parent
612431bbbb
commit
deb6b061ce
1 file changed
+1
-1
@@ -126,7 +126,7 @@ public abstract class IdeFinder {
|
||||
String prop = System.getProperty("os.name", "").toLowerCase();
|
||||
if (prop.matches("^.*\\bmac\\b.*$")) return OS.MAC_OS_X;
|
||||
if (prop.matches("^.*\\bdarwin\\b.*$")) return OS.MAC_OS_X;
|
||||
if (prop.matches("^.*\\bwin(dows)\\b.*$")) return OS.WINDOWS;
|
||||
if (prop.matches("^.*\\bwindows\\b.*$")) return OS.WINDOWS;
|
||||
|
||||
return OS.UNIX;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user