You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance URL Validation with Additional Protocol Support
This commit improves the URL validation functionality by introducing a new protocol for validation and modifying the validation logic to accommodate this new protocol.
Changes include:
A new constant DATA_PROTOCOL has been introduced and included in the VALID_PROTOCOLS array for URL validation in isValidUrl.ts. This allows the validation function to check against multiple protocols.
The isValidHttpUrl function in isValidUrl.ts has been updated to use the VALID_PROTOCOLS array for validation. The function now checks if the URL protocol starts with any of the valid protocols, not just HTTP_PROTOCOL.
These changes enhance the robustness of the URL validation functionality.
0 commit comments