Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #6 from campbellmcneill/master
Browse files Browse the repository at this point in the history
Updated the regular expression on the object name validator to allow …
  • Loading branch information
rtfpessoa committed Feb 5, 2017
2 parents 0a1873f + 7181e7c commit 9772cfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static void validatePositiveInteger(@NotNull Map<String, String> invalid

private static void validateS3Key(@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime) {
if (!isReference(param, runtime)) {
if (!param.matches("[a-zA-Z_0-9!\\-\\.*'()/]*")) {
if (!param.matches("[a-zA-Z_0-9!\\-\\.*'()/,:-]*")) {
invalids.put(key, name + " must contain only safe characters");
}
}
Expand Down

0 comments on commit 9772cfb

Please sign in to comment.