Skip to content

Commit 0c1d654

Browse files
authored
Merge pull request #573 from openMetadataInitiative/Fix-ISBN-pattern
Closes #572: ISBN pattern extension
2 parents 61ceeb8 + cf80b5b commit 0c1d654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schemas/digitalIdentifier/ISBN.schema.tpl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"properties": {
1111
"identifier": {
1212
"type": "string",
13-
"pattern": "^([0-9]{3}-|)[0-9]{1}-[0-9]{3}-[0-9]{5}-[0-9]{1}$",
13+
"pattern": "^(?=(?:\\d-?){9}-[\\dX]$)[\\d]{1,5}-[\\d]{2,7}-[\\d]{1,6}-[\\dX]$|^(?=(?:\\d-?){13}$)97[89]-?[\\d]{1,5}-[\\d]{1,7}-[\\d]{1,6}-[\\d]$",
1414
"_instruction": "Enter the numeric commercial book identifier 'International Standard Book Number' (ISBN) following the defined pattern (e.g., 123-4-567-89012-3 (13-digit ISBN) or 4-567-89012-3 (10-digit ISBN))."
1515
}
1616
}

0 commit comments

Comments
 (0)