added importer for Gerberstraße Weimar
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -193,6 +193,7 @@ public abstract class BaseImporter implements Importer {
|
||||
return url(Payload.of(href)).optional().map(url -> new Link(url,txt)).orElse(null);
|
||||
})
|
||||
.filter(Objects::nonNull)
|
||||
.filter(link -> link.desciption() != null)
|
||||
.toList();
|
||||
}
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ public class Util {
|
||||
}
|
||||
|
||||
public static Result<LocalDate> parseGermanDate(String s){
|
||||
var match = GERMAN_DATE_PATTERN.matcher(" "+s+" ");
|
||||
var match = GERMAN_DATE_PATTERN.matcher(" "+s.trim()+" ");
|
||||
if (match.find()){
|
||||
var day = Integer.parseInt(match.group(1));
|
||||
var month = Integer.parseInt(match.group(2));
|
||||
@@ -150,7 +150,7 @@ public class Util {
|
||||
}
|
||||
|
||||
public static Result<LocalTime> parseGermanTime(String s){
|
||||
var match = GERMAN_TIME_PATTERN.matcher(s);
|
||||
var match = GERMAN_TIME_PATTERN.matcher(" "+s.trim()+" ");
|
||||
if (match.find()){
|
||||
var hour = Integer.parseInt(match.group(1));
|
||||
var minute = Integer.parseInt(match.group(2));
|
||||
|
||||
Reference in New Issue
Block a user