tools,doc: fix version picker bug in html.js
The processing of strings like 8.x
into a major version number and a
minor version number results in minor versions that are NaN
. In that
situation, since the picker will link to the latest docs in the
major version, include the version in the version picker.
Fixes: https://github.com/nodejs/node/issues/23979
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines