Skip to content

Commit 90f64be

Browse files
committed
Fix DDC notationPattern
1 parent 57457a9 commit 90f64be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/ddc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import jskos from "jskos-tools"
33
const ddc = new jskos.ConceptScheme({
44
uri: "http://dewey.info/scheme/edition/e23/",
55
uriPattern: "^http://dewey.info/class/(.+)/e23/$",
6-
notationPattern: "[0-9][0-9]?|[0-9]{3}(-[0-9]{3})?|[0-9]{3}.[0-9]+(-[0-9]{3}.[0-9]+(:[0-9]+)?)?|T?[1-9][A-Z]?--[0-9]+|[1-9][A-Z]?--[0-9]+(-[1-9][A-Z]?--[0-9]+(:[0-9]+)?)?",
6+
notationPattern: "(([0-9][0-9]?|[0-9]{3}(-[0-9]{3})?|[0-9]{3}\\.[0-9]+(-[0-9]{3}\\.[0-9]+(:[0-9]+)?)?|T[1-9][A-Z]?--[0-9]+(-T[1-9][A-Z]?--[0-9]+(:[0-9]+)?)?|[1-9][A-Z]?--[0-9]+(-[1-9][A-Z]?--[0-9]+(:[0-9]+)?)?)?)",
77
})
88

99
// DDC table numbers start with a 'T' but this letter is omitted in the URI.

0 commit comments

Comments
 (0)