MCPcopy Index your code
hub / github.com/dataease/SQLBot / constructor

Method constructor

frontend/public/swagger-ui-bundle.js:19133–19142  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_setDefaultsMethod · 0.95
aFunction · 0.70

Tested by

no test coverage detected