File tree 1 file changed +30
-3
lines changed
tests/draft2019-09/optional
1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " ECMA 262 regex non-compliance" ,
4
- "schema" : { "format" : " regex" },
4
+ "schema" : {
5
+ "type" : " string" ,
6
+ "pattern" : " ^x\\ Z"
7
+ },
8
+ "tests" : [
9
+ {
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
+ },
21
+ {
22
+ "description" : " ECMA 262 regex non-compliance" ,
23
+ "schema" : {
24
+ "type" : " string" ,
25
+ "pattern" : " ^x\\ z"
26
+ },
5
27
"tests" : [
6
28
{
7
- "description" : " ECMA 262 has no support for \\ Z anchor from .NET" ,
8
- "data" : " ^\\ S(|(.|\\ n)*\\ S)\\ Z" ,
29
+ "description" : " \\ z should match literal z" ,
30
+ "data" : " xz" ,
31
+ "valid" : true
32
+ },
33
+ {
34
+ "description" : " \\ z should not match end" ,
35
+ "data" : " x" ,
9
36
"valid" : false
10
37
}
11
38
]
You can’t perform that action at this time.
0 commit comments