trim spaces from titles
This commit is contained in:
parent
1d5c7056be
commit
0b97f282e2
6 changed files with 12 additions and 6 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"io"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -131,7 +132,7 @@ func (e EpicStruct) Load() error {
|
|||
}
|
||||
|
||||
id := fmt.Sprintf("%v%v", e.idPrefix, element.Id)
|
||||
title := element.Title
|
||||
title := strings.TrimSpace(element.Title)
|
||||
url := fmt.Sprintf("%v%v", e.baseUrl, productSlug)
|
||||
|
||||
e.deals[id] = Deal{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue