Decided to improve the windows regexp detector from 'windows' to win|win32|win64|windows, on a word break.

This commit is contained in:
Reinier Zwitserloot committed 2011-06-07 22:12:29 -07:00
1 parent deb6b061ce
commit 274d5de571
1 file changed
+2 -2
@@ -1,5 +1,5 @@
/*
* Copyright © 2009 Reinier Zwitserloot and Roel Spilker.
* Copyright © 2009-2011 Reinier Zwitserloot and Roel Spilker.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -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("^.*\\bwindows\\b.*$")) return OS.WINDOWS;
if (prop.matches("^.*\\bwin(dows|32|64)?\\b.*$")) return OS.WINDOWS;
return OS.UNIX;
}