From 9e8934aaa89367af60aa26df71b9dbed91b31bcd Mon Sep 17 00:00:00 2001 From: Mitchell Syer Date: Mon, 2 Sep 2024 12:24:22 -0400 Subject: [PATCH 1/2] Fix escaped ? --- .../src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt b/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt index 0778a593..f894ac86 100644 --- a/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt +++ b/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt @@ -53,6 +53,7 @@ internal fun String.removeAndroidMirroringFormat(): String { // Remove android format from string return replace("""\'""", "'") .replace("""\"""", "\"") + .replace("""\?""", "?") } internal fun String.convertXmlStringToAndroidLocalization(): String { From 266422840ab82cb874437a868dac44c5d5cc3b72 Mon Sep 17 00:00:00 2001 From: Mitchell Syer Date: Mon, 2 Sep 2024 12:35:46 -0400 Subject: [PATCH 2/2] Update StringExt.kt --- .../src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt b/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt index f894ac86..fcff8f2c 100644 --- a/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt +++ b/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt @@ -53,7 +53,7 @@ internal fun String.removeAndroidMirroringFormat(): String { // Remove android format from string return replace("""\'""", "'") .replace("""\"""", "\"") - .replace("""\?""", "?") + .replace("""\?""", "?") } internal fun String.convertXmlStringToAndroidLocalization(): String {