(rVal: unknown)
| 174 | private _condVal: RegExp; |
| 175 | |
| 176 | constructor(rVal: unknown) { |
| 177 | // Support condVal: RegExp | string |
| 178 | const condValue = this._condVal = isString(rVal) ? new RegExp(rVal) |
| 179 | : isRegExp(rVal) ? rVal as RegExp |
| 180 | : null; |
| 181 | if (condValue == null) { |
| 182 | let errMsg = ''; |
| 183 | if (__DEV__) { |
| 184 | errMsg = makePrintable('Illegal regexp', rVal, 'in'); |
| 185 | } |
| 186 | throwError(errMsg); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | evaluate(lVal: unknown): boolean { |
| 191 | const type = typeof lVal; |
nothing calls this directly
no test coverage detected