mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
improve bitcoin validation regex + testcases
This commit is contained in:
parent
64275356e4
commit
06cec2041d
2 changed files with 32 additions and 1 deletions
|
|
@ -453,7 +453,7 @@ valuetypes = {
|
|||
["AuthorEmail"]),
|
||||
|
||||
FieldValidator("Bitcoin address",
|
||||
r'^[a-zA-Z0-9]{27,34}$',
|
||||
r'^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$',
|
||||
["Bitcoin"]),
|
||||
|
||||
FieldValidator("Litecoin address",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue