added importer for Gerberstraße Weimar

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-01-08 22:56:36 +01:00
parent ca6d50af81
commit 364146d36f
3 changed files with 149 additions and 2 deletions
@@ -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));