Fix small issues
This commit is contained in:
parent
291f2b909b
commit
aaf354d4d4
1 changed files with 5 additions and 1 deletions
|
@ -232,7 +232,11 @@ public class IndexUploader {
|
||||||
throw new OneFileException("Not supported file format " + fileName);
|
throw new OneFileException("Not supported file format " + fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
String regionName = fileName.substring(0, fileName.lastIndexOf('_', fileName.indexOf('.')));
|
int last = fileName.lastIndexOf('_', fileName.indexOf('.'));
|
||||||
|
if (last == -1) {
|
||||||
|
last = fileName.indexOf('.');
|
||||||
|
}
|
||||||
|
String regionName = fileName.substring(0, last);
|
||||||
summary += regionName;
|
summary += regionName;
|
||||||
summary = summary.replace('_', ' ');
|
summary = summary.replace('_', ' ');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue