Skip to content

Commit ec20320

Browse files
committed
modify sanitise inverse pattern
1 parent 2d5e843 commit ec20320

File tree

1 file changed

+1
-1
lines changed
  • databricks-sdk-java/src/main/java/com/databricks/sdk/core

1 file changed

+1
-1
lines changed

databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void withProduct(String product, String productVersion) {
4848
Pattern.compile("^" + semVerCore + semVerPrerelease + semVerBuildmetadata + "$");
4949

5050
private static final Pattern regexpAlphanum = Pattern.compile("^[0-9A-Za-z_\\.\\+\\-/ ]+$");
51-
private static final Pattern regexpAlphanumInverse = Pattern.compile("[^0-9A-Za-z_\\.\\+-]");
51+
private static final Pattern regexpAlphanumInverse = Pattern.compile("[^0-9A-Za-z_\\.\\+\\-/ ]");
5252

5353
/**
5454
* Replaces all non-alphanumeric characters with a hyphen. Use this to ensure that the user agent

0 commit comments

Comments
 (0)