(s, o)
| 19131 | _ = a.types |
| 19132 | s.exports = class RandExp { |
| 19133 | constructor(s, o) { |
| 19134 | if ((this._setDefaults(s), s instanceof RegExp)) |
| 19135 | ((this.ignoreCase = s.ignoreCase), (this.multiline = s.multiline), (s = s.source)) |
| 19136 | else { |
| 19137 | if ('string' != typeof s) throw new Error('Expected a regexp or string') |
| 19138 | ;((this.ignoreCase = o && -1 !== o.indexOf('i')), |
| 19139 | (this.multiline = o && -1 !== o.indexOf('m'))) |
| 19140 | } |
| 19141 | this.tokens = a(s) |
| 19142 | } |
| 19143 | _setDefaults(s) { |
| 19144 | ;((this.max = |
| 19145 | null != s.max |
nothing calls this directly
no test coverage detected