File tree 1 file changed +39
-1
lines changed
tests/draft2019-09/optional
1 file changed +39
-1
lines changed Original file line number Diff line number Diff line change 4
4
"schema" : { "format" : " regex" },
5
5
"tests" : [
6
6
{
7
- "description" : " ECMA 262 has no support for \\ Z anchor from .NET " ,
7
+ "description" : " ECMA 262 has no support for \\ Z anchor, but it's still a valid regex " ,
8
8
"data" : " ^\\ S(|(.|\\ n)*\\ S)\\ Z" ,
9
+ "valid" : true
10
+ }
11
+ ]
12
+ },
13
+ {
14
+ "description" : " ECMA 262 regex non-compliance" ,
15
+ "schema" : {
16
+ "type" : " string" ,
17
+ "pattern" : " ^x\\ Z"
18
+ },
19
+ "tests" : [
20
+ {
21
+ "description" : " \\ Z should match literal Z" ,
22
+ "data" : " xZ" ,
23
+ "valid" : true
24
+ },
25
+ {
26
+ "description" : " \\ Z should not match end" ,
27
+ "data" : " x" ,
28
+ "valid" : false
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "description" : " ECMA 262 regex non-compliance" ,
34
+ "schema" : {
35
+ "type" : " string" ,
36
+ "pattern" : " ^x\\ z"
37
+ },
38
+ "tests" : [
39
+ {
40
+ "description" : " \\ z should match literal z" ,
41
+ "data" : " xz" ,
42
+ "valid" : true
43
+ },
44
+ {
45
+ "description" : " \\ z should not match end" ,
46
+ "data" : " x" ,
9
47
"valid" : false
10
48
}
11
49
]
You can’t perform that action at this time.
0 commit comments