Skip to content

Commit 71b027c

Browse files
committed
add some more characters to allowed file names
1 parent 485c5ba commit 71b027c

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/com/simplemobiletools/filemanager

1 file changed

+1
-1
lines changed

app/src/main/java/com/simplemobiletools/filemanager/Utils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Utils {
3030
}
3131

3232
fun isNameValid(name: String): Boolean {
33-
val pattern = Pattern.compile("^[-_.A-Za-z0-9() ]+$")
33+
val pattern = Pattern.compile("^[-_.A-Za-z0-9()#& ]+$")
3434
val matcher = pattern.matcher(name)
3535
return matcher.matches()
3636
}

0 commit comments

Comments
 (0)