Skip to content

Commit

Permalink
⏪️ revert replace on encodeParameter (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
HubM authored Jan 12, 2024
2 parents fdf6c3a + 66b6078 commit a7f3fbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/libraries/routes/src/encodeParameter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
*
* @param parameter
* @returns le paramètre de l'url encodé, avec les espaces remplacés par des +
* @returns le paramètre de l'url encodé
*/
export const encodeParameter = (parameter: string) =>
encodeURIComponent(parameter).replace(/%20/g, '+');
export const encodeParameter = (parameter: string) => encodeURIComponent(parameter);

0 comments on commit a7f3fbe

Please sign in to comment.