MCPcopy Create free account
hub / github.com/alignoth/alignoth / parse

Method parse

resources/vega-embed.min.js:1358–1369  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

1356 a("comp", this));
1357 }
1358 parse(t) {
1359 const n = this.options.loose
1360 ? r[i.COMPARATORLOOSE]
1361 : r[i.COMPARATOR],
1362 o = t.match(n);
1363 if (!o) throw new TypeError(`Invalid comparator: ${t}`);
1364 ((this.operator = void 0 !== o[1] ? o[1] : ""),
1365 "=" === this.operator && (this.operator = ""),
1366 o[2]
1367 ? (this.semver = new s(o[2], this.options.loose))
1368 : (this.semver = e));
1369 }
1370 toString() {
1371 return this.value;
1372 }

Callers 15

constructorMethod · 0.95
FtFunction · 0.45
vega.min.jsFile · 0.45
naFunction · 0.45
raFunction · 0.45
transformFunction · 0.45
ZyFunction · 0.45
UBFunction · 0.45
OzFunction · 0.45
CLFunction · 0.45
fFunction · 0.45
kFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected