Commit 884b8dd9 authored by Nico Mack's avatar Nico Mack

Made port number optional

parent 298ebc5d
......@@ -48,7 +48,7 @@ public class UriParser {
// inspired by https://snipplr.com/view/6889/regular-expressions-for-uri-validationparsing/
private static final Pattern AUTHORITY_PATTERN = Pattern.compile("([a-z][a-z0-9+.-]*)://(\\[[0-9A-F:.]{2,}\\]|(?:[a-z0-9-._~!$&'()*+,;=]|%[0-9A-F]{2})*)(?::(?=(\\d*)))", Pattern.CASE_INSENSITIVE); //$NON-NLS-1$
private static final Pattern AUTHORITY_PATTERN = Pattern.compile("([a-z][a-z0-9+.-]*)://(\\[[0-9A-F:.]{2,}\\]|(?:[a-z0-9-._~!$&'()*+,;=]|%[0-9A-F]{2})*)(?::(?=(\\d*)))?", Pattern.CASE_INSENSITIVE); //$NON-NLS-1$
private static final Logger LOGGER = LoggerFactory.getLogger(UriParser.class.getSimpleName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment