MCPcopy Create free account
hub / github.com/compat-table/compat-table / parseEnvId

Function parseEnvId

build-utils/parse-envs-versions.js:24–34  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

22};
23
24function parseEnvId(id) {
25 var result = { id: id };
26
27 var match = id.match(RE.engine);
28 if (!match) throw new Error("Unable to parse environment id: " + id);
29
30 result.name = match[1];
31 result.version = parseVersion(match[2]);
32
33 return result;
34}
35
36function parseVersion(version) {
37 if (!version) return null;

Callers 1

Calls 1

parseVersionFunction · 0.85

Tested by

no test coverage detected