Skip to content

Commit 2c290ce

Browse files
committed
Merged in [16022] from rcross@amsl.com:
Modify IPR Patent number regex to allow Italian format, XX[15 digits]. Fixes ietf-tools#2694. - Legacy-Id: 16023 Note: SVN reference [16022] has been migrated to Git commit c368887
2 parents 682ddee + c368887 commit 2c290ce

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ietf/ipr/forms.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ class Meta:
107107
help_texts = { 'sections': 'Sections' }
108108

109109
validate_patent_number = RegexValidator(
110-
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})?)[, ]*)+$",
110+
regex=("^("
111+
"([A-Z][A-Z]\d\d/\d{6}"
112+
"|[A-Z][A-Z]\d{6,12}([A-Z]\d?)?"
113+
"|[A-Z][A-Z]\d{4}(\w{1,2}\d{5,7})?"
114+
"|[A-Z][A-Z]\d{15}"
115+
")[, ]*)+$"),
111116
message="Please enter one or more patent publication or application numbers as country code and serial number, e.g.: US62/123456 or WO2017123456." )
112117

113118
def validate_string(s, letter_min, digit_min, space_min, message):

0 commit comments

Comments
 (0)