Skip to content

Commit

Permalink
Update user info pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev authored and jayblanc committed Mar 18, 2024
1 parent 0227d53 commit d7071da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -62,7 +62,7 @@ public class UriComponentsBuilder {

private static final String HTTP_PATTERN = "(?i)(http|https):";

private static final String USERINFO_PATTERN = "([^@\\[/?#]*)";
private static final String USERINFO_PATTERN = "([^@/?#]*)";

private static final String HOST_PATTERN = "([^/?#:]*)";

Expand Down

0 comments on commit d7071da

Please sign in to comment.