MCPcopy Create free account
hub / github.com/ethereum/node-crawler / tryParseNumber

Function tryParseNumber

frontend/src/data/DataProcessor.ts:91–93  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

89};
90
91function tryParseNumber(input: string): number | undefined {
92 return parseInt(input) || undefined;
93}
94
95function parseVersion(version: string, parseOpt: ParseParam): Version | undefined {
96 const matches = version.match(/v?(?<major>\d+)(?:.(?<minor>\d+).(?<patch>\d+)(?:-(?<tag>\w+)(?:-(?<build>[a-zA-Z0-9]+)(?:-(?<date>\d+))?)?)?)?/)

Callers 1

parseVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected