Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 committed Mar 28, 2024
1 parent 83cef76 commit bac7471
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public static MultipleSourcesContainer processNamedData(List<StrippedSourceConta
*/
private static boolean containsDataWithProfile(Map<String, String> rawData, String[] activeProfiles) {
return rawData.keySet().stream().anyMatch(
key -> Arrays.stream(activeProfiles).anyMatch(activeProfile -> key.endsWith("-" + activeProfile)
key -> Arrays.stream(activeProfiles).anyMatch(activeProfile -> key.contains("-" + activeProfile)
|| "default".equals(activeProfile)));
}

Expand Down

0 comments on commit bac7471

Please sign in to comment.