v0.2.3: bugfix

This commit is contained in:
Evan Debenham 2014-12-10 20:54:41 -05:00
parent 77d7d9f3df
commit c429e0e832

View File

@ -208,10 +208,10 @@ public class Artifact extends KindofMisc {
//converts class names to be more concise and readable. //converts class names to be more concise and readable.
protected String convertName(String className){ protected String convertName(String className){
//removes known redundant parts of names. //removes known redundant parts of names.
className.replaceFirst("ScrollOf|PotionOf", ""); className = className.replaceFirst("ScrollOf|PotionOf", "");
//inserts a space infront of every uppercase character //inserts a space infront of every uppercase character
className.replaceAll("(\\p{Ll})(\\p{Lu})", "$1 $2"); className = className.replaceAll("(\\p{Ll})(\\p{Lu})", "$1 $2");
return className; return className;
}; };