From e1c391cce4426d80e6748ca36af937f95b8cb9f1 Mon Sep 17 00:00:00 2001 From: bmuenzenmeyer Date: Wed, 29 Jul 2026 17:28:10 -0500 Subject: [PATCH 1/2] doc: report proper return type on urlPattern.test Signed-off-by: bmuenzenmeyer --- doc/api/url.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/url.md b/doc/api/url.md index d5dc06055b6cc3..80a1177429ffa1 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -830,6 +830,7 @@ console.log(myPattern.exec('https://nodejs.org/docs/latest/api/dns.html')); * `input` {string | Object} A URL or URL parts * `baseURL` {string | undefined} A base URL string +* Returns boolean Input can be a string or an object providing the individual URL parts. The object members can be any of `protocol`, `username`, `password`, `hostname`, From 2359e12f75f638b30bfffe71a43f7f4882d0d4f4 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Wed, 29 Jul 2026 21:00:51 -0500 Subject: [PATCH 2/2] Update doc/api/url.md --- doc/api/url.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/url.md b/doc/api/url.md index 80a1177429ffa1..0a2d92b77957fd 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -830,7 +830,7 @@ console.log(myPattern.exec('https://nodejs.org/docs/latest/api/dns.html')); * `input` {string | Object} A URL or URL parts * `baseURL` {string | undefined} A base URL string -* Returns boolean +* Returns {boolean} Input can be a string or an object providing the individual URL parts. The object members can be any of `protocol`, `username`, `password`, `hostname`,