From 042e7763356f92a0459477839aea0bbc3c475908 Mon Sep 17 00:00:00 2001 From: nthbotast Date: Thu, 12 Mar 2026 14:29:27 +0100 Subject: [PATCH] docs(buildURL): fix outdated encode() comment (#7478) Co-authored-by: Nathanael BOT Co-authored-by: Jay --- lib/helpers/buildURL.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers/buildURL.js b/lib/helpers/buildURL.js index f10e26c6..d6745da5 100644 --- a/lib/helpers/buildURL.js +++ b/lib/helpers/buildURL.js @@ -4,8 +4,8 @@ import utils from '../utils.js'; import AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js'; /** - * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their - * URI encoded counterparts + * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with + * their plain counterparts (`:`, `$`, `,`, `+`). * * @param {string} val The value to be encoded. *