Skip to content

Conversation

@holmboe
Copy link
Contributor

@holmboe holmboe commented Jan 11, 2026

Summary

  • Fix URL validation regex to accept port numbers in PHAB_URL (e.g., http://phabricator.domain.tld:81/api/)
  • Add support for IPv6 addresses enclosed in brackets (e.g., http://[::1]/api/ or http://[2001:db8::1]:8080/api/)

Fixes #53

Test plan

  • Added tests for URLs with port numbers
  • Added tests for IPv6 URLs (with and without ports)
  • Added tests for invalid URLs (including IPv6 without brackets)
  • All 262 tests pass

🤖 Generated with Claude Code

holmboe and others added 2 commits January 11, 2026 17:40
The URL validation regex now accepts URLs with optional port numbers
(e.g., http://phabricator.domain.tld:81/api/). Previously these URLs
were rejected as malformed.

Fixes #53

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The URL validation regex now accepts IPv6 addresses enclosed in brackets
(e.g., http://[::1]/api/ or http://[2001:db8::1]:8080/api/).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@holmboe holmboe merged commit cf2ff6d into master Jan 11, 2026
15 checks passed
@holmboe holmboe deleted the fix/issue-53-port-number branch January 11, 2026 16:50
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.

Phabricator url including a port do not work

2 participants