Fixing some syntax issues.

It was late, I was tired, this was the result.
This commit is contained in:
Daniel Scalzi 2018-04-12 22:40:48 -04:00
parent 12aa9f9c5b
commit 28cd147ca0
No known key found for this signature in database
GPG Key ID: 5CA2F145B63535F9

View File

@ -624,9 +624,9 @@ class AssetGuard extends EventEmitter {
const ret = {} const ret = {}
let pts = verString.split('-') let pts = verString.split('-')
ret.build = parseInt(pts[1].substring(1)) ret.build = parseInt(pts[1].substring(1))
pts = verString[0].split('_') pts = pts[0].split('_')
ret.update = parseInt(pts[1]) ret.update = parseInt(pts[1])
ret.major = parseInt(pts[0].split['.'][1]) ret.major = parseInt(pts[0].split('.')[1])
return ret return ret
} }