(expectation)
| 90 | }, |
| 91 | |
| 92 | class(expectation) { |
| 93 | const escapedParts = expectation.parts.map( |
| 94 | part => (Array.isArray(part) |
| 95 | ? classEscape(part[0]) + "-" + classEscape(part[1]) |
| 96 | : classEscape(part)) |
| 97 | ); |
| 98 | |
| 99 | return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]" + (expectation.unicode ? "u" : ""); |
| 100 | }, |
| 101 | |
| 102 | any() { |
| 103 | return "any character"; |