mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
fix parsing
This commit is contained in:
parent
9b4063618c
commit
8dcbd9679e
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue