Skip to content

Commit

Permalink
⏪️ revert replace on encodeParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
HubM committed Jan 12, 2024
1 parent fdf6c3a commit 66b6078
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 66b6078

Please sign in to comment.