|
6 | 6 | /^http:\/\/test.(example-a|example-b).com/; // $ Alert |
7 | 7 | /^http:\/\/(.+).example.com\//; // $ Alert |
8 | 8 | /^http:\/\/(\\.+)\\.example.com/; |
9 | | - /^http:\/\/(?:.+)\\.test\\.example.com\//; // $ Alert |
10 | | - /^http:\/\/test.example.com\/(?:.*)/; |
| 9 | + /^http:\/\/(?:.+)\\.test\\.example.com\//; // $ MISSING: Alert (TODO) |
| 10 | + /^http:\/\/test.example.com\/(?:.*)/; // $ SPURIOUS: Alert (TODO) |
11 | 11 | new RegExp("^http://test.example.com"); // $ Alert |
12 | 12 | if (s.match("^http://test.example.com")) {} // $ Alert |
13 | 13 |
|
14 | 14 | function id(e) { return e; } |
15 | 15 | new RegExp(id(id(id("^http://test.example.com")))); // $ Alert |
16 | 16 |
|
17 | | - new RegExp(`test.example.com$`); // $ Alert |
| 17 | + new RegExp(`test.example.com$`); // $ MISSING: Alert (TODO) |
18 | 18 |
|
19 | 19 | let hostname = '^test.example.com'; // $ Alert |
20 | 20 | new RegExp(`${hostname}$`); |
|
33 | 33 | } |
34 | 34 | domains.map(d => convert2(d)); |
35 | 35 |
|
36 | | - /^(.+\.(?:example-a|example-b)\.com)\//; // $ Alert |
| 36 | + /^(.+\.(?:example-a|example-b)\.com)\//; // $ MISSING: Alert (TODO) |
37 | 37 | /^(https?:)?\/\/((service|www).)?example.com(?=$|\/)/; // $ Alert |
38 | 38 | /^(http|https):\/\/www.example.com\/p\/f\//; // $ Alert |
39 | 39 | /^(http:\/\/sub.example.com\/)/g; // $ Alert |
40 | 40 | /^https?:\/\/api.example.com/; // $ Alert |
41 | 41 | new RegExp('^http://localhost:8000|' + '^https?://.+\\.example\\.com/'); // $ Alert |
42 | | - new RegExp('^http[s]?:\/\/?sub1\\.sub2\\.example\\.com\/f\/(.+)'); // $ Alert |
| 42 | + new RegExp('^http[s]?:\/\/?sub1\\.sub2\\.example\\.com\/f\/(.+)'); // $ MISSING: Alert (TODO) |
43 | 43 | /^https:\/\/[a-z]*.example.com$/; // $ Alert |
44 | 44 | RegExp('^protos?://(localhost|.+.example.net|.+.example-a.com|.+.example-b.com|.+.example.internal)'); // $ Alert |
45 | 45 |
|
|
56 | 56 |
|
57 | 57 | /^http:\/\/(..|...)\.example\.com\/index\.html/; // OK, wildcards are intentional |
58 | 58 | /^http:\/\/.\.example\.com\/index\.html/; // OK, the wildcard is intentional |
59 | | - /^(foo.example\.com|whatever)$/; // kinda OK - one disjunction doesn't even look like a hostname |
| 59 | + /^(foo.example\.com|whatever)$/; // $ SPURIOUS: Alert (TODO) (kinda OK - one disjunction doesn't even look like a hostname) |
60 | 60 |
|
61 | 61 | if (s.matchAll("^http://test.example.com")) {} // $ Alert |
62 | 62 | }); |
0 commit comments