Skip to content

Commit

Permalink
Update user info pattern
Browse files Browse the repository at this point in the history
Closes gh-32211
  • Loading branch information
rstoyanchev committed Feb 13, 2024
1 parent 667e4e7 commit b11ff96
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-2022 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 @@ -77,7 +77,7 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable {

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_IPV4_PATTERN = "[^\\[/?#:]*";

Expand Down

0 comments on commit b11ff96

Please sign in to comment.