|
13 | 13 |
|
14 | 14 | x.startsWith("https://secure.com"); // $ Alert
|
15 | 15 | x.endsWith("secure.com"); // $ Alert
|
16 |
| - x.endsWith(".secure.com"); // OK |
17 |
| - x.startsWith("secure.com/"); // OK |
18 |
| - x.indexOf("secure.com/") === 0; // OK |
| 16 | + x.endsWith(".secure.com"); |
| 17 | + x.startsWith("secure.com/"); |
| 18 | + x.indexOf("secure.com/") === 0; |
19 | 19 |
|
20 | 20 | x.includes("secure.com"); // $ Alert
|
21 | 21 |
|
22 |
| - x.indexOf("#") !== -1; // OK |
23 |
| - x.indexOf(":") !== -1; // OK |
24 |
| - x.indexOf(":/") !== -1; // OK |
25 |
| - x.indexOf("://") !== -1; // OK |
26 |
| - x.indexOf("//") !== -1; // OK |
27 |
| - x.indexOf(":443") !== -1; // OK |
28 |
| - x.indexOf("/some/path/") !== -1; // OK |
29 |
| - x.indexOf("some/path") !== -1; // OK |
30 |
| - x.indexOf("/index.html") !== -1; // OK |
31 |
| - x.indexOf(":template:") !== -1; // OK |
| 22 | + x.indexOf("#") !== -1; |
| 23 | + x.indexOf(":") !== -1; |
| 24 | + x.indexOf(":/") !== -1; |
| 25 | + x.indexOf("://") !== -1; |
| 26 | + x.indexOf("//") !== -1; |
| 27 | + x.indexOf(":443") !== -1; |
| 28 | + x.indexOf("/some/path/") !== -1; |
| 29 | + x.indexOf("some/path") !== -1; |
| 30 | + x.indexOf("/index.html") !== -1; |
| 31 | + x.indexOf(":template:") !== -1; |
32 | 32 | x.indexOf("https://secure.com") !== -1; // $ Alert
|
33 | 33 | x.indexOf("https://secure.com:443") !== -1; // $ Alert
|
34 | 34 | x.indexOf("https://secure.com/") !== -1; // $ Alert
|
35 | 35 |
|
36 | 36 | x.indexOf(".cn") !== -1; // $ MISSING: Alert
|
37 |
| - x.indexOf(".jpg") !== -1; // OK |
38 |
| - x.indexOf("index.html") !== -1; // OK |
39 |
| - x.indexOf("index.js") !== -1; // OK |
40 |
| - x.indexOf("index.php") !== -1; // OK |
41 |
| - x.indexOf("index.css") !== -1; // OK |
| 37 | + x.indexOf(".jpg") !== -1; |
| 38 | + x.indexOf("index.html") !== -1; |
| 39 | + x.indexOf("index.js") !== -1; |
| 40 | + x.indexOf("index.php") !== -1; |
| 41 | + x.indexOf("index.css") !== -1; |
42 | 42 |
|
43 | 43 | x.indexOf("secure=true") !== -1; // OK (query param)
|
44 | 44 | x.indexOf("&auth=") !== -1; // OK (query param)
|
45 | 45 |
|
46 | 46 | x.indexOf(getCurrentDomain()) !== -1; // $ MISSING: Alert
|
47 | 47 | x.indexOf(location.origin) !== -1; // $ MISSING: Alert
|
48 | 48 |
|
49 |
| - x.indexOf("tar.gz") + offset; // OK |
50 |
| - x.indexOf("tar.gz") - offset; // OK |
| 49 | + x.indexOf("tar.gz") + offset; |
| 50 | + x.indexOf("tar.gz") - offset; |
51 | 51 |
|
52 | 52 | x.indexOf("https://example.internal") !== -1; // $ Alert
|
53 |
| - x.indexOf("https://") !== -1; // OK |
| 53 | + x.indexOf("https://") !== -1; |
54 | 54 |
|
55 | 55 | x.startsWith("https://example.internal"); // $ Alert
|
56 | 56 | x.indexOf('https://example.internal.org') !== 0; // $ Alert
|
57 | 57 | x.indexOf('https://example.internal.org') === 0; // $ Alert
|
58 | 58 | x.endsWith("internal.com"); // $ Alert
|
59 |
| - x.startsWith("https://example.internal:80"); // OK |
| 59 | + x.startsWith("https://example.internal:80"); |
60 | 60 |
|
61 | 61 | x.indexOf("secure.com") !== -1; // $ Alert
|
62 |
| - x.indexOf("secure.com") === -1; // OK |
63 |
| - !(x.indexOf("secure.com") !== -1); // OK |
64 |
| - !x.includes("secure.com"); // OK |
| 62 | + x.indexOf("secure.com") === -1; |
| 63 | + !(x.indexOf("secure.com") !== -1); |
| 64 | + !x.includes("secure.com"); |
65 | 65 |
|
66 | 66 | if(!x.includes("secure.com")) { // $ Alert
|
67 | 67 |
|
|
0 commit comments