Skip to content

Commit

Permalink
fix (#1242): fix remove double quotes from values parsed in
Browse files Browse the repository at this point in the history
settings.gradle
  • Loading branch information
iocanel committed Oct 25, 2023
1 parent 9c6bca3 commit 9f1a86c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/io/dekorate/project/GradleInfoReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ protected static Map<String, String> readSettingsGradle(Path path) {
String key = l.substring(0, l.lastIndexOf(EQUALS));
if (key.startsWith(ROOT_PROJECT_PREFIX)) {
key = key.substring(ROOT_PROJECT_PREFIX.length());
String value = l.substring(l.lastIndexOf(EQUALS) + 1).replaceAll(QUOTE, "");
String value = l.substring(l.lastIndexOf(EQUALS) + 1)
.replaceAll(QUOTE, "")
.replaceAll(DOUBLE_QUOTE, "");
properties.put(key, value);
}
});
Expand Down

0 comments on commit 9f1a86c

Please sign in to comment.