Skip to content

Commit fd6b305

Browse files
addaleaxMylesBorins
authored andcommitted
tools: use better regexp for manpage references
In practice, manpage names may contain dots (e.g. `resolv.conf(5)`). PR-URL: #9632 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent c0d44df commit fd6b305

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
@@ -263,7 +263,7 @@ var BSD_ONLY_SYSCALLS = new Set(['lchmod']);
263263
// Returns modified text, with such refs replace with HTML links, for example
264264
// '<a href="http://man7.org/linux/man-pages/man2/open.2.html">open(2)</a>'
265265
functionlinkManPages(text){
266-
returntext.replace(/([a-z]+)\((\d)\)/gm,function(match,name,number){
266+
returntext.replace(/([a-z.]+)\((\d)\)/gm,function(match,name,number){
267267
// name consists of lowercase letters, number is a single digit
268268
vardisplayAs=name+'('+number+')';
269269
if(BSD_ONLY_SYSCALLS.has(name)){

0 commit comments

Comments
(0)