mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Make FlattrID a hexadecimal value
This adds support for flattr "things" that are not direct flattr numeric ids, but hexadecimal hashes representing web pages outside of flattr.
This commit is contained in:
parent
d69f93e5b2
commit
18b105ac70
1 changed files with 6 additions and 1 deletions
|
|
@ -154,9 +154,14 @@ class FieldValidator():
|
|||
valuetypes = {
|
||||
FieldValidator("Integer",
|
||||
r'^[1-9][0-9]*$', None,
|
||||
['FlattrID'],
|
||||
[],
|
||||
['vercode']),
|
||||
|
||||
FieldValidator("Hexadecimal",
|
||||
r'^[0-9a-f]+$', None,
|
||||
['FlattrID'],
|
||||
[]),
|
||||
|
||||
FieldValidator("HTTP link",
|
||||
r'^http[s]?://', None,
|
||||
["Web Site", "Source Code", "Issue Tracker", "Donate"], []),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue