mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02: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 {
|
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)
|
val matcher = pattern.matcher(name)
|
||||||
return matcher.matches()
|
return matcher.matches()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user