Skip to content

fix: validate bracketed IPv6 URLs (#77) - #142

Open
raj130088 wants to merge 1 commit into
usernane:mainfrom
raj130088:fix/77-ipv6-url-validation
Open

raj130088 wants to merge 1 commit into
usernane:mainfrom
raj130088:fix/77-ipv6-url-validation

Conversation

@raj130088

Copy link
Copy Markdown

Fixes #77.

AJAXRequest.isValidURL() now accepts URLs with bracketed IPv6 hosts, including http://[::1]:8080/api. It also rejects malformed IPv6 addresses while preserving existing validation behavior for domains, localhost, and IPv4.

Added regression tests for valid and invalid IPv6 URLs.
Verification: 442 tests passed; lint and build passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(validation): URL regex rejects IPv6 addresses

1 participant