From b64ef37906e7b2e51857e73ec61eedfcb79ba4e8 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 4 May 2019 15:57:28 +0200 Subject: fix export error for non-unicode numbers --- src/main/java/de/pixart/messenger/services/ExportBackupService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3