fix parsing

This commit is contained in:
Ruidy 2025-01-05 17:13:17 +01:00
parent 9b4063618c
commit 8dcbd9679e
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -13,6 +13,7 @@ import (
func (bs Service) ParseFromApi(rawContent string) (*Booking, error) {
b, err := ParseBooking(rawContent)
log.Printf("parsed booking: %+v", b)
if err != nil {
return nil, err
}
@ -65,7 +66,7 @@ func ParseBooking(content string) (*Booking, error) {
return nil, err
}
itemName, err := extractString(`Maison . Chambre.\((T2|T3) -`, content)
itemName, err := extractString(`Maison . Chambres.\((T2|T3) -`, content)
if err != nil {
return nil, err
}