From 15791b732c2436ee10466e12af3b9d39858998b1 Mon Sep 17 00:00:00 2001 From: ialokim Date: Sun, 28 Apr 2019 12:46:49 +0200 Subject: [PATCH] fix export error for non-unicode numbers (#3444) --- .../eu/siacs/conversations/services/ExportBackupService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/services/ExportBackupService.java b/src/main/java/eu/siacs/conversations/services/ExportBackupService.java index 16e1662cb..d715ea539 100644 --- a/src/main/java/eu/siacs/conversations/services/ExportBackupService.java +++ b/src/main/java/eu/siacs/conversations/services/ExportBackupService.java @@ -192,7 +192,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); @@ -349,4 +349,4 @@ public class ExportBackupService extends Service { return builder.build(); } } -} \ No newline at end of file +}