We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f52b8 commit a6a0d0eCopy full SHA for a6a0d0e
tests/draft2019-09/optional/ecmascript-regex.json
@@ -1,11 +1,29 @@
1
[
2
{
3
"description": "ECMA 262 regex non-compliance",
4
- "schema": { "format": "regex" },
+ "schema": {
5
+ "type": "string",
6
+ "pattern": "^\\S\\Z"
7
+ },
8
"tests": [
9
- "description": "ECMA 262 has no support for \\Z anchor from .NET",
- "data": "^\\S(|(.|\\n)*\\S)\\Z",
10
+ "description": "\\Z should match literal Z",
11
+ "data": "xZ",
12
+ "valid": true
13
14
+ {
15
+ "description": "\\Z should not match end",
16
+ "data": "x",
17
+ "valid": false
18
19
20
+ "description": "\\z should match literal z",
21
+ "data": "xz",
22
23
24
25
+ "description": "\\z should not match end",
26
27
"valid": false
28
}
29
]
0 commit comments