Skip to content

Commit

Permalink
1.0.7
Browse files Browse the repository at this point in the history
Fix bug affecting extinct life forms
  • Loading branch information
d-shapiro committed May 7, 2019
1 parent 9a196a8 commit 2b9a085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "wikiClade"

version := "1.0.6"
version := "1.0.7"

scalaVersion := "2.12.8"

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/cladograms/EnWikipediaClade.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ case class EnWikipediaClade(name: String, path: Option[String], priorityOverride
val ref =
if (refs.isEmpty) ""
else refs.first().attr("href")
val text = Try(td.child(0)).getOrElse(td).text()
val text = Try(td.select(":not(span)").get(0)).getOrElse(td).text()
val cladeType = if (tds.size() > 1) tds.get(tds.size() - 2).text() else ""
TaxonDetails(text, cladeType, if (ref.startsWith("/")) ref else "")
}
Expand Down

0 comments on commit 2b9a085

Please sign in to comment.