T4: MarkdownRegistrySource test + fix isPersonTable check [checkpoint]
This commit is contained in:
+8
-2
@@ -138,8 +138,14 @@ public class MarkdownRegistrySource implements VoivodeshipSource {
|
||||
if (rows.size() < 2) continue;
|
||||
|
||||
Elements headerCells = rows.get(0).select("th, td");
|
||||
boolean isPersonTable = headerCells.stream().anyMatch(h ->
|
||||
h.text().contains("Funkcja") && h.text().contains("Imię"));
|
||||
boolean isPersonTable = headerCells.stream()
|
||||
.map(Element::text)
|
||||
.collect(java.util.stream.Collectors.joining(" "))
|
||||
.contains("Funkcja") &&
|
||||
headerCells.stream()
|
||||
.map(Element::text)
|
||||
.collect(java.util.stream.Collectors.joining(" "))
|
||||
.contains("Imię");
|
||||
|
||||
if (!isPersonTable) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user