Skip to content

tools,doc: fix version picker bug in html.js

Rodrigo Muino Tomonari requested to merge github/fork/Trott/altdocs-fix into master

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading