danmaku: remove decimals in notification comparing
diff --git a/app/src/main/java/org/exthmui/game/services/DanmakuService.java b/app/src/main/java/org/exthmui/game/services/DanmakuService.java
index f317f53..e1c7fdb 100644
--- a/app/src/main/java/org/exthmui/game/services/DanmakuService.java
+++ b/app/src/main/java/org/exthmui/game/services/DanmakuService.java
@@ -114,8 +114,8 @@
}
private boolean compareDanmaku(String a, String b) {
- String tA = a.replaceAll("[0-9]", "");
- String tB = b.replaceAll("[0-9]", "");
+ String tA = a.replaceAll("[\\d]+\\.[\\d]+|[\\d]", "");
+ String tB = b.replaceAll("[\\d]+\\.[\\d]+|[\\d]", "");
if (TextUtils.isEmpty(tA) || TextUtils.isEmpty(tB)) {
return levenshtein(a, b) > filterThreshold;
} else {