1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01: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:
Daniel Martí 2014-07-16 00:02:01 +02:00
parent d69f93e5b2
commit 18b105ac70

View File

@ -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"], []),