Skip to content

Commit 35deea3

Browse files
committed
Added support for kind codes as part of patent numbers.
- Legacy-Id: 15285
1 parent 780c71a commit 35deea3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/ipr/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ 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][A-Z]\d{4}(\w{1,2}\d{5,7})?)[, ]*)+$",
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})?)[, ]*)+$",
111111
message="Please enter one or more patent publication or application numbers as country code and serial number, e.g.: US62/123456 or WO2017123456." )
112112

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

0 commit comments

Comments
 (0)