1
0
Fork 0

[Cleaning] filter authors not providing word characters in the fullname

This commit is contained in:
Claudio Atzori 2021-01-26 09:48:53 +01:00
parent 2890511613
commit 885e0dd926
1 changed files with 2 additions and 1 deletions

View File

@ -206,7 +206,8 @@ public class CleaningFunctions {
.getAuthor() .getAuthor()
.stream() .stream()
.filter(a -> Objects.nonNull(a)) .filter(a -> Objects.nonNull(a))
.filter(a -> StringUtils.isNotBlank(StringUtils.trim(a.getFullname()))) .filter(a -> StringUtils.isNotBlank(a.getFullname()))
.filter(a -> StringUtils.isNotBlank(a.getFullname().replaceAll("[\\W]", "")))
.collect(Collectors.toList())); .collect(Collectors.toList()));
boolean nullRank = r boolean nullRank = r