MCPcopy Index your code
hub / github.com/parse-community/parse-server / fromString

Function fromString

src/ClientSDK.js:24–34  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

22}
23
24function fromString(version) {
25 const versionRE = /([-a-zA-Z]+)([0-9\.]+)/;
26 const match = version.toLowerCase().match(versionRE);
27 if (match && match.length === 3) {
28 return {
29 sdk: match[1],
30 version: match[2],
31 };
32 }
33 return undefined;
34}
35
36module.exports = {
37 compatible,

Callers 1

compatibleFunction · 0.85

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected