l.a.v.cve : module documentation

Part of lp.app.validators

No module docstring
Function valid_cve Validate CVE identification.
def valid_cve(name):

Validate CVE identification.

Until 2014 CVE sequence had to be smaller 4 digits (<= 9999):

>>> valid_cve('1999-1234')
True
>>> valid_cve('2014-9999')
True

And leading zeros were required for sequence in [1-999]:

>>> valid_cve('2014-999')
False
>>> valid_cve('2014-0999')
True

From 2014 and on, sequence can be any sequence of digits greater or equal to 4 digits:

>>> valid_cve('2014-19999')
True
>>> valid_cve('2014-99999999')
True
API Documentation for Launchpad, generated by pydoctor at 2018-08-15 00:00:09.