tools: fix nits in tools/doc/common.js
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
- Replace
.match()
with.test()
in a boolean context. - Concentrate exports.
- Remove obsolete "safety fuse" replacer (was meant to guard against backticks at the beginning of the lines, but it is not a common practice anymore and we has no cases for this pattern match now). This change is approved by @addaleax (the deleted block was added here).