add some more characters to allowed file names

This commit is contained in:
tibbi 2016-11-06 23:29:47 +01:00
parent 485c5bad56
commit 71b027ccfb
1 changed files with 1 additions and 1 deletions

View File

@ -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()
} }