diff --git a/index.js b/index.js index 44cdb63e69f3c1f557bf69a2684a861dfdd9c3be..ae4781e42a3b77329665e458ff6e64b04e554c20 100644 --- a/index.js +++ b/index.js @@ -229250,11 +229250,12 @@ function removeMultipleSpaces(str) { * This regular expression matches one or more consecutive dots * and then in the replacement function, it checks if the dots are surrounded by non-dot characters. * If so, it replaces them with a space; otherwise, it removes them + * @example * console.log(removeDots(".....03G2")); // Outputs: "03G2" * console.log(removeDots("....ETG..4...D")); // Outputs: "ETG 4 D" * console.log(removeDots("ETG 4 D")); // Outputs: "ETG 4 D" - * @param {string} input - * @returns {string} + * @param {string} input - The input string containing dots to be removed. + * @returns {string} The input string without dots. */ function removeDots(input) { return input.replace(/\.+/g, (match, offset, string) => { @@ -247496,7 +247497,7 @@ async function verifyUserIdentity( // Fifth try, remove address number and add escalierEtEtageEtAppartement if (!pdl) { - log('warn', 'Fourth try onboarding for sge') + log('warn', 'Fifth try onboarding for sge') pdl = await findUserPdl( `${baseUrl}/enedis_SDE_recherche-point/1.0`, apiAuthKey, diff --git a/onDeleteAccount.js b/onDeleteAccount.js index b94d26448074c1f4d4779876555d557a92d168b6..71e230d9b76bd8628fb8388f913d6762c1fc3cd0 100644 --- a/onDeleteAccount.js +++ b/onDeleteAccount.js @@ -228483,11 +228483,12 @@ function removeMultipleSpaces(str) { * This regular expression matches one or more consecutive dots * and then in the replacement function, it checks if the dots are surrounded by non-dot characters. * If so, it replaces them with a space; otherwise, it removes them + * @example * console.log(removeDots(".....03G2")); // Outputs: "03G2" * console.log(removeDots("....ETG..4...D")); // Outputs: "ETG 4 D" * console.log(removeDots("ETG 4 D")); // Outputs: "ETG 4 D" - * @param {string} input - * @returns {string} + * @param {string} input - The input string containing dots to be removed. + * @returns {string} The input string without dots. */ function removeDots(input) { return input.replace(/\.+/g, (match, offset, string) => {