Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
String url = "
Patterns.WEB_URL.matcher(url).matches();
although this URL is perfectly correct. I wrote a regular expression that takes square brackets into the URL and it works correctly:
String myregexp = "^(https?|udp)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;\\[\\]]*[-a-zA-Z0-9+&@#/%=~_|\\[\\]]";
But I would like to use Patterns.WEB_URL and I hope that this defect can be fixed.