Closed gkellogg closed 7 years ago
The new stringFacet rule is:
stringFacet
[34] stringFacet ::= stringLength INTEGER | "PATTERN" string | "~" string
However, string uses one of the STRING_LITERAL terminals, which is quoted. Instead, I suggest adding a new terminal:
string
STRING_LITERAL
[XX] PATTERN ::= "/" ([^#x2f#x5C#xA#xD] | '\\' [tbnrf\\/] | UCHAR)+ "/" [smixq]*
and using "~" PATTERN.
"~" PATTERN
updated -- now: [34] stringFacet ::= stringLength INTEGER | REGEXP https://shexspec.github.io/spec/#prod-stringFacet [63] ::= '/' ([^/\\n\r] | '\' [nrt\|.?+(){}$-[]^/] | UCHAR)+ '/' [smix] https://shexspec.github.io/spec/#term-REGEXP
PROPOSE: close REASON: fixed
The new
stringFacet
rule is:However,
string
uses one of theSTRING_LITERAL
terminals, which is quoted. Instead, I suggest adding a new terminal:and using
"~" PATTERN
.