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

Method randexp

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

Source from the content-addressed store, hash-verified

19231 this._range = s
19232 }
19233 static randexp(s, o) {
19234 var i
19235 return (
19236 'string' == typeof s && (s = new RegExp(s, o)),
19237 void 0 === s._randexp
19238 ? ((i = new RandExp(s, o)), (s._randexp = i))
19239 : (i = s._randexp)._setDefaults(s),
19240 i.gen()
19241 )
19242 }
19243 static sugar() {
19244 RegExp.prototype.gen = function () {
19245 return RandExp.randexp(this)

Callers 1

sugarMethod · 0.80

Calls 2

_setDefaultsMethod · 0.80
genMethod · 0.80

Tested by

no test coverage detected