From 71b027ccfbcd4c0a0c3f3b1f952eb4235822288d Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 6 Nov 2016 23:29:47 +0100 Subject: [PATCH] add some more characters to allowed file names --- app/src/main/java/com/simplemobiletools/filemanager/Utils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/simplemobiletools/filemanager/Utils.kt b/app/src/main/java/com/simplemobiletools/filemanager/Utils.kt index 102cb099..30f54c0e 100644 --- a/app/src/main/java/com/simplemobiletools/filemanager/Utils.kt +++ b/app/src/main/java/com/simplemobiletools/filemanager/Utils.kt @@ -30,7 +30,7 @@ class Utils { } fun isNameValid(name: String): Boolean { - val pattern = Pattern.compile("^[-_.A-Za-z0-9() ]+$") + val pattern = Pattern.compile("^[-_.A-Za-z0-9()#& ]+$") val matcher = pattern.matcher(name) return matcher.matches() }