Fix regular expressions, thanks ChickenBones!

This commit is contained in:
Christian Weeks 2012-04-09 09:19:20 -04:00
parent 597b6f0d2c
commit f92149aef5

View file

@ -58,8 +58,8 @@ import cpw.mods.fml.common.toposort.TopologicalSort;
*/
public class Loader
{
private static Pattern zipJar = Pattern.compile("([^\\s]+).(zip|jar)$");
private static Pattern modClass = Pattern.compile("(.*/?)(mod\\_[^\\s]+).class$");
private static Pattern zipJar = Pattern.compile("(.+).(zip|jar)$");
private static Pattern modClass = Pattern.compile("(.+/|)(mod\\_[^\\s$]+).class$");
/**
* The state enum used to help track state progression for the loader