version 1.0.0
[debian/openrocket] / src / net / sf / openrocket / database / Databases.java
index efb8cd6cb36a26f48ac1fed28403edba3179228c..c5c28b7906d95ba5ace90a28c1fa99a5b91a99e7 100644 (file)
@@ -46,9 +46,9 @@ public class Databases {
 
        // TODO: HIGH: loading the thrust curves and other databases
        static {
-               
+               final String filePattern = ".*\\.([eE][nN][gG]|[rR][sS][eE])$";
                try {
-                       MOTOR.loadJarDirectory("datafiles/thrustcurves/", ".*\\.[eE][nN][gG]$");
+                       MOTOR.loadJarDirectory("datafiles/thrustcurves/", filePattern);
                } catch (IOException e) {
                        System.out.println("Could not read thrust curves from JAR: "+e.getMessage());
                        
@@ -63,7 +63,7 @@ public class Databases {
                        }
                                
                        try {
-                               MOTOR.loadDirectory(dir, ".*\\.[eE][nN][gG]$");
+                               MOTOR.loadDirectory(dir, filePattern);
                        } catch (IOException e1) {
                                System.out.println("Could not read thrust curves from directory either.");
                                throw new ConfigurationException("Couldn't read thrust curves from either " +