diff --git a/providers/aws-s3/src/main/java/org/jclouds/aws/s3/functions/ETagFromHttpResponseViaRegex.java b/providers/aws-s3/src/main/java/org/jclouds/aws/s3/functions/ETagFromHttpResponseViaRegex.java index fd455aa183..8212a89f4f 100644 --- a/providers/aws-s3/src/main/java/org/jclouds/aws/s3/functions/ETagFromHttpResponseViaRegex.java +++ b/providers/aws-s3/src/main/java/org/jclouds/aws/s3/functions/ETagFromHttpResponseViaRegex.java @@ -36,7 +36,7 @@ import com.google.common.base.Function; @Singleton public class ETagFromHttpResponseViaRegex implements Function { private static Pattern pattern = Pattern.compile("([\\S&&[^<]]+)"); - private static Pattern quotPattern = Pattern.compile("(")"); + private static String ESCAPED_QUOTE = """; private final ReturnStringIf2xx returnStringIf200; @Inject @@ -52,16 +52,8 @@ public class ETagFromHttpResponseViaRegex implements Function