Allow hyphens in middle portion of token (#8282)
This commit is contained in:
parent
6e3e17ef28
commit
22d2ef247f
|
@ -130,7 +130,7 @@
|
|||
"title": "Token",
|
||||
"type": "string",
|
||||
"$comment": "In the regex below, the 'module' portion of the token is optional. However, a missing module component creates a '::', which breaks URNs ('::' is the URN delimiter). We have many test schemas that use an empty module component successfully, as they never create URNs; while these are _probably_ the only places that need updating, it might be possible that there are module-less type tokens in the wild elsewhere and we may need to remain compatible with those tokens.",
|
||||
"pattern": "^[a-zA-Z][-a-zA-Z0-9_]*:([^0-9][a-zA-Z0-9._/]*)?:[^0-9][a-zA-Z0-9._/]*$"
|
||||
"pattern": "^[a-zA-Z][-a-zA-Z0-9_]*:([^0-9][a-zA-Z0-9._/-]*)?:[^0-9][a-zA-Z0-9._/]*$"
|
||||
},
|
||||
"typeSpec": {
|
||||
"title": "Type Reference",
|
||||
|
|
Loading…
Reference in a new issue