Compare commits

...

2 Commits

Author SHA1 Message Date
elaneri
f803e0aad6
Merge 8117b5adbd into fb54d8b549 2023-05-22 17:37:32 -05:00
elaneri
8117b5adbd posible polynomial runtime due to backtracking 2023-04-02 10:23:52 -03:00

View File

@ -200,10 +200,10 @@ public class FeatureUpdateController implements FeatureUpdateService.ServiceIfac
}
private List<PenguinVersion> getPenguinVersions(String penguinVersionsStr) {
String[] tokens = penguinVersionsStr.split("\\s*,\\s*");
String[] tokens = penguinVersionsStr.split(",");
List<PenguinVersion> listOfPenguinVersions = Lists.newArrayListWithCapacity(tokens.length);
for (String token : tokens) {
listOfPenguinVersions.add(PenguinVersion.valueOf(token.toUpperCase()));
listOfPenguinVersions.add(PenguinVersion.valueOf(token.trim().toUpperCase()));
}
LOG.info(String.format("Using Penguin Versions: %s", listOfPenguinVersions));
return listOfPenguinVersions;