v0.2.3: bugfix
This commit is contained in:
parent
77d7d9f3df
commit
c429e0e832
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user