Merged in [16022] from rcross@amsl.com:
Modify IPR Patent number regex to allow Italian format, XX[15 digits]. Fixes #2694.
- Legacy-Id: 16023
Note: SVN reference [16022] has been migrated to Git commit c3688872fd
This commit is contained in:
commit
2c290ce663
|
@ -107,7 +107,12 @@ 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