Skip to content

Commit

Permalink
modify sanitise inverse pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
samikshya-db committed Nov 18, 2024
1 parent 2d5e843 commit ec20320
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static void withProduct(String product, String productVersion) {
Pattern.compile("^" + semVerCore + semVerPrerelease + semVerBuildmetadata + "$");

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

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

0 comments on commit ec20320

Please sign in to comment.