diff --git a/src/com/twitter/Regex.java b/src/com/twitter/Regex.java index 14b853f..b807486 100644 --- a/src/com/twitter/Regex.java +++ b/src/com/twitter/Regex.java @@ -25,7 +25,7 @@ private static String join(Collection col, String delim) { private static final Yaml yaml = new Yaml(); private static final Map tlds = (Map)yaml.load( - ClassLoader.getSystemResourceAsStream("tld_lib.yml") + Regex.class.getClassLoader().getResourceAsStream("tld_lib.yml") ); private static final List gTlds = (List)tlds.get("generic"); private static final List cTlds = (List)tlds.get("country");