This commit is contained in:
inorichi 2016-02-23 17:32:47 +01:00
parent 4876eaafcc
commit 4ba0f343e3

View File

@ -153,7 +153,7 @@ public class ChapterRecognition {
Matcher m = uncleanNumber.matcher(text); Matcher m = uncleanNumber.matcher(text);
if (m.find()) { if (m.find()) {
try { try {
Float value = Float.parseFloat(m.group(1)); Float value = Float.parseFloat(m.group(1).replaceAll(",", "."));
if (!occurences.contains(value)) { if (!occurences.contains(value)) {
occurences.add(value); occurences.add(value);
} }