From a6f967221a6151c8f47c183e7e3d026d6234099f Mon Sep 17 00:00:00 2001 From: Lukas Krecan Date: Thu, 2 Apr 2020 15:36:29 +0200 Subject: [PATCH] Add warning to redundant character escapes --- .../main/java/net/javacrumbs/jsonunit/core/internal/Diff.java | 1 + 1 file changed, 1 insertion(+) diff --git a/json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/Diff.java b/json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/Diff.java index 6b54867d7..9fe1bd092 100644 --- a/json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/Diff.java +++ b/json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/Diff.java @@ -62,6 +62,7 @@ */ public class Diff { + // DO NOT remove redundant character escapes, they are needed for Android https://github.com/lukas-krecan/JsonUnit/pull/227 private static final Pattern ANY_NUMBER_PLACEHOLDER = Pattern.compile("[$#]\\{json-unit.any-number\\}"); private static final Pattern ANY_BOOLEAN_PLACEHOLDER = Pattern.compile("[$#]\\{json-unit.any-boolean\\}"); private static final Pattern ANY_STRING_PLACEHOLDER = Pattern.compile("[$#]\\{json-unit.any-string\\}");