MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / getMostRecent

Method getMostRecent

renderer/renderJS/resolve_ui.js:64–69  ·  view source on GitHub ↗
(verList)

Source from the content-addressed store, hash-verified

62
63 // MARK: comparisons
64 getMostRecent(verList) {
65 for ( const testVersion of verList ) {
66 if ( this.unwrapVersion(testVersion.version)[0] === false ) { return false }
67 }
68 return verList.reduce((last, current) => this.maxVersion(last, current))
69 }
70
71 unwrapVersion(verString) {
72 if ( verString.match(/[^\d.]/) ) { return [false, null] }

Callers 1

gotDataMethod · 0.95

Calls 2

unwrapVersionMethod · 0.95
maxVersionMethod · 0.95

Tested by

no test coverage detected