Skip to content

Commit 70cfe68

Browse files
DiegoRBaqueroMylesBorins
authored andcommitted
tools: replace space with \b in regex
PR-URL: #17479 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 1eff647 commit 70cfe68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/html.js

+1-1
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-
/ ([a-z.]+)\((\d)([a-z]?)\)/gm,
419+
/\b([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)