diff --git a/internal/booking/service.go b/internal/booking/service.go index 374d4b8..c8a3e32 100644 --- a/internal/booking/service.go +++ b/internal/booking/service.go @@ -276,7 +276,7 @@ func (bs Service) ParseFromApi(rawContent string) (*Booking, error) { customerEmail := extractString(`[\w\.\-]+@[\w\.\-]+\.\w+`, content) customerNumber := extractInt(`Nombre de personnes : \s*\n\s*(\d+)`, content) commissionAmount := extractFloat(`Commission : € (\d+,\d+)`, content) - itemName := extractString(`Maison 1 Chambre \((T2|T3) -`, content) + itemName := extractString(`Maison . Chambre. \((T2|T3) -`, content) externalId := extractString(`Numéro de réservation : \n\s+(\d+)`, content) standardRate := extractFloat(`Standard Rate\n\s+€ (\d+)`, content) @@ -338,7 +338,7 @@ func extractString(pattern, content string) string { func formatDate(date string) *time.Time { months := map[string]string{ - "janv.": "01", "fév": "02", "mar": "03", "avr": "04", + "janv.": "01", "févr.": "02", "mar": "03", "avr": "04", "mai": "05", "juin": "06", "juil.": "07", "août": "08", "sep": "09", "oct": "10", "nov": "11", "déc": "12", }