add support for Repos with Numbers in their name (#255)

* add support for Repos with Numbers in their name

* Update strings_sy.xml

changed invalid_repo_name to better reflect its meaning
This commit is contained in:
Johannes Joens 2021-03-31 12:23:52 +13:00 committed by GitHub
parent dc760c0596
commit 90ffb8cdf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -79,6 +79,6 @@ class RepoPresenter(
} }
companion object { companion object {
val repoRegex = """^[a-zA-Z-_.]*?\/[a-zA-Z-_.]*?$""".toRegex() val repoRegex = """^[a-zA-Z0-9-_.]*?\/[a-zA-Z0-9-_.]*?$""".toRegex()
} }
} }

View File

@ -343,7 +343,7 @@
</plurals> </plurals>
<string name="error_repo_exists">This repo already exists!</string> <string name="error_repo_exists">This repo already exists!</string>
<string name="snack_repo_deleted">Repo deleted</string> <string name="snack_repo_deleted">Repo deleted</string>
<string name="invalid_repo_name">Invalid category name</string> <string name="invalid_repo_name">Invalid repo name</string>
<string name="repo_source">Repo source</string> <string name="repo_source">Repo source</string>
<!-- Migration --> <!-- Migration -->