mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-03 04:38:40 +01:00
Ensure that urn NID cannot include '.'
This commit is contained in:
parent
ef42dae296
commit
eac0859cd8
@ -26,7 +26,7 @@ inline bool isUriAbsolute(const std::string &documentUri)
|
||||
*/
|
||||
inline bool isUrn(const std::string &documentUri) {
|
||||
static const std::regex pattern(
|
||||
"^((urn)|(URN)):[a-zA-Z0-9]+[-]{0,1}[\\.a-zA-Z0-9]+(:[-a-zA-Z0-9\\\\._~%!"
|
||||
"^((urn)|(URN)):[a-zA-Z0-9]+[-]{0,1}[a-zA-Z0-9]+(:[-a-zA-Z0-9\\\\._~%!"
|
||||
"$&'()\\/*+,;=]+)+(\\?[-a-zA-Z0-9\\\\._~%!$&'()\\/"
|
||||
"*+,;:=]+){0,1}(#[-a-zA-Z0-9\\\\._~%!$&'()\\/*+,;:=]+){0,1}");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user