Modify IPR Patent number regex to allow Italian format, XX[15 digits]. Fixes #2694. Commit ready for merge
- Legacy-Id: 16022
This commit is contained in:
parent
3b50082904
commit
c3688872fd
|
@ -107,7 +107,7 @@ class DraftForm(forms.ModelForm):
|
|||
help_texts = { 'sections': 'Sections' }
|
||||
|
||||
validate_patent_number = RegexValidator(
|
||||
regex="^(([A-Z][A-Z]\d\d/\d{6}|[A-Z][A-Z]\d{6,12}([A-Z]\d?)?|[A-Z][A-Z]\d{4}(\w{1,2}\d{5,7})?)[, ]*)+$",
|
||||
regex="^(([A-Z][A-Z]\d\d/\d{6}|[A-Z][A-Z]\d{6,12}([A-Z]\d?)?|[A-Z][A-Z]\d{4}(\w{1,2}\d{5,7})?|[A-Z][A-Z]\d{15})[, ]*)+$",
|
||||
message="Please enter one or more patent publication or application numbers as country code and serial number, e.g.: US62/123456 or WO2017123456." )
|
||||
|
||||
def validate_string(s, letter_min, digit_min, space_min, message):
|
||||
|
|
Loading…
Reference in a new issue