aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-05-04 15:57:28 +0200
committerChristian Schneppe <christian@pix-art.de>2019-05-04 15:57:28 +0200
commitb64ef37906e7b2e51857e73ec61eedfcb79ba4e8 (patch)
treec9352ccb9c133d57b8244b92897a27ae35bd1fa3
parent9be4dfb6ed579fcd9a457d40d699ee27ba61e1ef (diff)
fix export error for non-unicode numbers
-rw-r--r--src/main/java/de/pixart/messenger/services/ExportBackupService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/ExportBackupService.java b/src/main/java/de/pixart/messenger/services/ExportBackupService.java
index 0d976c484..ade2ca685 100644
--- a/src/main/java/de/pixart/messenger/services/ExportBackupService.java
+++ b/src/main/java/de/pixart/messenger/services/ExportBackupService.java
@@ -209,7 +209,7 @@ public class ExportBackupService extends Service {
final String value = cursor.getString(i);
if (value == null) {
builder.append("NULL");
- } else if (value.matches("\\d+")) {
+ } else if (value.matches("[0-9]+")) {
builder.append(value);
} else {
DatabaseUtils.appendEscapedSQLString(builder, value);