Skip to content

Commit

Permalink
Fix forgotten test...
Browse files Browse the repository at this point in the history
  • Loading branch information
stelar7 committed Jul 11, 2022
1 parent d33593b commit bd61942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public List<StaticLoRCard> getCards(LoRFaction faction)
{
return cards
.stream()
.filter(c -> c.getRegionRef().equalsIgnoreCase(faction.commonName()))
.filter(c -> c.getRegionRefs().stream().map(String::toLowerCase).collect(Collectors.toList()).contains(faction.commonName().toLowerCase()))
.collect(Collectors.toList());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ public String commonName()
case BILGEWATER:
return "Bilgewater";
case MOUNT_TARGON:
return "Mount Targon";
return "MountTargon";
case SHURIMA:
return "Shurima";
case BANDLE_CITY:
return "Bandle City";
return "BandleCity";
default:
throw new RuntimeException("Unknown region; please alert the API maintainer!");
}
Expand Down

0 comments on commit bd61942

Please sign in to comment.