Skip to content

Commit

Permalink
Actually negate pattern
Browse files Browse the repository at this point in the history
(cherry picked from commit 9793d45)
  • Loading branch information
infeo committed Feb 23, 2023
1 parent 05cd4b8 commit b0d54e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@OperatingSystem(OperatingSystem.Value.WINDOWS)
public class WinFspNetworkMountProvider extends WinFspMountProvider {

private static final Pattern HOST_NAME_PATTERN_NEGATED = Pattern.compile("[a-zA-Z0-9-._~]+"); // all but unreserved chars according to https://www.rfc-editor.org/rfc/rfc3986#section-2.3
private static final Pattern HOST_NAME_PATTERN_NEGATED = Pattern.compile("[^a-zA-Z0-9-._~]+"); // all but unreserved chars according to https://www.rfc-editor.org/rfc/rfc3986#section-2.3

@Override
public String displayName() {
Expand Down

0 comments on commit b0d54e1

Please sign in to comment.