diff options
| author | Iain Lane <iain.lane@canonical.com> | 2017-07-11 11:30:47 (GMT) |
|---|---|---|
| committer | Iain Lane <iain.lane@canonical.com> | 2017-07-11 11:31:06 (GMT) |
| commit | 46e645dda67925ab11ce0f6a818c8d1defa1c92b (patch) | |
| tree | 656abc39c17baf698cfac5b0df1a5df1a51f050a | |
| parent | 4d946a85e3512b8738bf7bd209fcf5583e3f870c (diff) | |
request: Allow uppercase characters in package versions
| -rw-r--r-- | webcontrol/request/submit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webcontrol/request/submit.py b/webcontrol/request/submit.py index 605a01c..df2b044 100644 --- a/webcontrol/request/submit.py +++ b/webcontrol/request/submit.py @@ -19,7 +19,7 @@ import amqplib.client_0_8 as amqp # Launchpad REST API base LP = 'https://api.launchpad.net/1.0/' NAME = re.compile('^[a-z0-9][a-z0-9.+-]+$') -VERSION = re.compile('^[a-z0-9.+:~-]+$') +VERSION = re.compile('^[a-zA-Z0-9.+:~-]+$') # allowed values are rather conservative, expand if/when needed ENV = re.compile(r'^[a-zA-Z][a-zA-Z0-9_]+=[a-zA-Z0-9.:~/ -]*$') # URL and optional branch name |
