Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
ms9698 committed Nov 18, 2024
1 parent b297202 commit 6513543
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public DefaultResponseDeserialiser(final TypeReference<O> typeReference) {
@Override
public O deserialise(final String jsonString) throws SerialisationException {
// Special handling for String values returned while using the ProxyStore
if (typeReference.getType().equals(Object.class) && !jsonString.matches("^(-?\\d*\\.?\\d*|false|true|null|\\[.*\\]|\\{.*\\})$")) {
if (typeReference.getType().equals(Object.class) && !jsonString.matches("^(-?\\d*+\\.?\\d*+|false|true|null|\\[.*+\\]|\\{.*+\\})$")) {
// The input is likely a plain java.lang.String object, so return as-is
return (O) jsonString;
} else {
Expand Down

0 comments on commit 6513543

Please sign in to comment.