Correction de bug #2 + Modification du readme.md + Ajout d'un test d'un autre groupe

This commit is contained in:
2025-03-16 13:46:59 +01:00
parent 03ab0ab04f
commit 072e5205e7
4 changed files with 64 additions and 1 deletions

View File

@@ -199,8 +199,10 @@ public class BakefileParser {
if (depStr == null || depStr.trim().isEmpty()) {
return new ArrayList<>();
}
String cleanedStr = depStr.replaceAll("\\\\\\s*", " ");
String resolvedStr = replaceVariables(depStr.trim());
String resolvedStr = replaceVariables(cleanedStr.trim());
return Arrays.stream(resolvedStr.split("\\s+"))
.map(String::trim)
.filter(s -> !s.isEmpty())