Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9868ce5

Browse filesBrowse files
DiegoRBaquerogibfahn
authored andcommitted
tools: replace space with \b in regex
PR-URL: #17479 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 889986a commit 9868ce5
Copy full SHA for 9868ce5

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎tools/doc/html.js‎

Copy file name to clipboardExpand all lines: tools/doc/html.js
+1-1Lines 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-
/ ([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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.