Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: url parse add sanitize #83

Merged
merged 3 commits into from
Dec 20, 2024
Merged

feat: url parse add sanitize #83

merged 3 commits into from
Dec 20, 2024

Conversation

iugo
Copy link
Member

@iugo iugo commented Dec 20, 2024

No description provided.

iugo added 3 commits December 20, 2024 08:37
- Introduced sanitizeString function to clean and sanitize input strings, allowing for customizable character replacement.
- Updated parseQueryString and parseQueryStringArray functions to include an optional sanitize parameter, enabling automatic sanitization of query strings.
- Added comprehensive unit tests for sanitizeString, covering various scenarios including special characters, non-ASCII characters, and empty strings.
- Enhanced documentation with detailed JSDoc comments for the new sanitizeString function and updated existing functions to reflect the new sanitization feature.
…ests

- Renamed the test for parseQueryStringArray to include a version identifier for clarity.
- Introduced a new test case for parseQueryStringArray that validates sanitization of query parameters, ensuring special characters are handled correctly.
- Updated the parseQueryStringArray function to support an optional sanitizeWithSeparator parameter, allowing for customizable sanitization behavior.
- Enhanced the sanitizeString function to support custom character replacement, improving flexibility in string sanitization.
- Added comprehensive unit tests for sanitizeString, covering various scenarios including custom replacements and mixed character inputs.
@iugo iugo self-assigned this Dec 20, 2024
@iugo iugo added the enhancement New feature or request label Dec 20, 2024
@iugo iugo merged commit 9742a76 into main Dec 20, 2024
1 check passed
@iugo iugo deleted the feat-url-parse-add-sanitize branch December 20, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant