add some more characters to allowed file names
This commit is contained in:
parent
485c5bad56
commit
71b027ccfb
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue