Skip to content

Commit

Permalink
search by organic resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ManApart committed Nov 24, 2023
1 parent e374ab4 commit 6bcc9b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jsMain/kotlin/PlanetSearch.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ private fun planetMatches(planet: Planet, searchText: String): Boolean {
|| flora.any { it.lowercase().contains(searchText) }
|| fauna.any { it.lowercase().contains(searchText) }
|| inorganicResources.any { it.contains(searchText) }
|| organicResources.any { it.lowercase().contains(searchText) }
}
}

Expand Down

0 comments on commit 6bcc9b1

Please sign in to comment.