Skip to content

Commit 5af4822

Browse files
tools: fix man pages linking regex
The change to word boundary was breaking many doc pages. This reverts the word boundary back to space. Fixes: nodejs#17637 Fixes: nodejs#17694 Refs: nodejs#17479
1 parent 97cee72 commit 5af4822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ const BSD_ONLY_SYSCALLS = new Set(['lchmod']);
416416
// '<a href="http://man7.org/linux/man-pages/man2/open.2.html">open(2)</a>'
417417
function linkManPages(text) {
418418
return text.replace(
419-
/\b([a-z.]+)\((\d)([a-z]?)\)/gm,
419+
/ ([a-z.]+)\((\d)([a-z]?)\)/gm,
420420
(match, name, number, optionalCharacter) => {
421421
// name consists of lowercase letters, number is a single digit
422422
const displayAs = `${name}(${number}${optionalCharacter})`;

0 commit comments

Comments
 (0)