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
[PM-14846] Improve IP Address and Port Handling in StringExtensions
- **New Function:** Added `isIpAddress()` to check if a string is a valid IPv4 address, optionally with a port and scheme.
- **Regex Update:** Added the `IP_ADDRESS_WITH_OPTIONAL_PORT` regex. It validates IPv4 addresses with or without ports (0-65535 range), with an optional `http://` or `https://` prefix.
- **URI Parsing:** Modified `toUriOrNull()` to handle IP addresses without schemes by adding a default "https://" scheme before parsing.
- **Tests update**: Added new tests for `isIpAddress` function.
0 commit comments