@@ -9,36 +9,43 @@ const range = (from, to) =>
9
9
Array . from ( { length : to - from + 1 } , ( _ , i ) => i + from ) ;
10
10
11
11
const knownIssues = {
12
- "issue with parsing the test itself" : [
13
- 1103 ,
14
- ...range ( 1185 , 1188 ) ,
15
- ...range ( 1095 , 1098 ) ,
16
- ...range ( 487 , 494 ) ,
17
- ...range ( 1077 , 1082 ) ,
18
- ] ,
12
+ /* ------- features not yet implemented ------- */
19
13
"does not support start of string quantified within an alternation" : [
20
14
1363 ,
21
15
1369 ,
22
16
] ,
23
17
"does not support hex notification in character sets" : [ ...range ( 1147 , 1149 ) ] ,
18
+ "does nto support escaped characters in character ranges" : [
19
+ ...range ( 1301 , 1308 ) ,
20
+ ] ,
24
21
"lazy quantifiers should still yield the longest overall regex match" : [
25
22
...range ( 141 , 143 ) ,
26
23
1288 ,
27
24
] ,
25
+
26
+ /* -------- issues with the tests ------------ */
27
+ "test appears to be incorrect?" : [ 203 , 204 ] ,
28
+ "issue with parsing the test itself" : [
29
+ 1103 ,
30
+ ...range ( 1185 , 1188 ) ,
31
+ ...range ( 1095 , 1098 ) ,
32
+ ...range ( 487 , 494 ) ,
33
+ ...range ( 1077 , 1082 ) ,
34
+ ] ,
28
35
"test contains an octal escape sequence" : [ 1102 ] ,
29
36
// the test results measure captured groups using character length / locations
30
37
// see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
31
38
// this is tricky to reproduce
32
39
"test requires a substring function" : [ 1087 , 1088 ] ,
33
- "requires triage" : [ ...range ( 1301 , 1308 ) ] ,
40
+
41
+ /* -------- differences between PCRE and JS regex ------------ */
34
42
"test indicates a malformed regex, whereas it appears OK in JS" : [ 1189 ] ,
35
43
"JS does not support the \\A \\Z syntax for start and end of string" : [
36
44
1163 ,
37
45
1164 ,
38
46
] ,
39
47
"test regex contains syntax not supported in JS" : [ 82 , 1158 , 281 ] ,
40
48
"the test behaviour differs between PCRE and JS" : [ 290 ] ,
41
- "test appears to be incorrect?" : [ 203 , 204 ] ,
42
49
} ;
43
50
44
51
const hasKnownIssue = ( index ) => {
0 commit comments