You are reading a single comment by @HughB and its replies.
Click here to read the full conversation.
-
Wondering if there is a better way.
well, calling
process.env.VERSION.split(".")
three times is a waste
ther are also regular expressions https://www.espruino.com/Reference#RegExp
I have written the following function to check for firmware greater than X.Y.Z but its a bit messy.
Wondering if there is a better way.
And then in the App...
Also was thinking that the format of the firware version string is a bit odd.
Why not use major.minor.build instead of major. "v0"minor.build ?