Skip to content

Commit

Permalink
fix: update ReplaceAll with double space to single
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasehlert committed Mar 3, 2025
1 parent 5c01ec1 commit 788b11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TibiaCharactersCharacter.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func TibiaCharactersCharacterImpl(BoxContentHTML string, url string) (CharacterR

// Removing line breaks
CharacterListHTML = TibiaDataHTMLRemoveLinebreaks(CharacterListHTML)
CharacterListHTML = strings.ReplaceAll(CharacterListHTML, ".<br/>Assisted by", ". Assisted by")
CharacterListHTML = strings.ReplaceAll(strings.ReplaceAll(CharacterListHTML, "<br/>", " "), " ", " ")
CharacterListHTML = TibiaDataSanitizeStrings(CharacterListHTML)

dataNoTags := RemoveHtmlTag(CharacterListHTML)
Expand Down

0 comments on commit 788b11e

Please sign in to comment.