Minor fixes

This commit is contained in:
PaulStets 2017-09-16 18:51:46 +03:00
parent 883ea72620
commit 95ca923431

View file

@ -416,6 +416,12 @@ public class BinaryMapIndexReader {
return ls.substring(0, ls.lastIndexOf('_')).replace('_', ' ');
} else {
if (ls.contains(".")) {
ls = ls.substring(0, ls.indexOf("."));
}
if (ls.endsWith("_2")) {
ls = ls.substring(0, ls.length() - "_2".length());
}
return ls.substring(0, ls.lastIndexOf('_')).replace('_', ' ');
}