mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-02-28 20:47:11 -05:00
add some more characters to allowed file names
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user