technyon / Arduino-CMake-Toolchain

CMake toolchain for all Arduino compatible boards
MIT License
20 stars 7 forks source link

cleaning up the arduino version string #6

Closed opokatech closed 4 months ago

opokatech commented 4 months ago

A version string like 1.2.3 is converted to a single number and passed to another script. The problem occurs when the version string looks like this: 1.8.19+dfsg1-2.

This fix removes all characters after the initial digits and dots.