Skip to content

Commit 788b11e

Browse files
committed
fix: update ReplaceAll with double space to single
1 parent 5c01ec1 commit 788b11e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TibiaCharactersCharacter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func TibiaCharactersCharacterImpl(BoxContentHTML string, url string) (CharacterR
385385

386386
// Removing line breaks
387387
CharacterListHTML = TibiaDataHTMLRemoveLinebreaks(CharacterListHTML)
388-
CharacterListHTML = strings.ReplaceAll(CharacterListHTML, ".<br/>Assisted by", ". Assisted by")
388+
CharacterListHTML = strings.ReplaceAll(strings.ReplaceAll(CharacterListHTML, "<br/>", " "), " ", " ")
389389
CharacterListHTML = TibiaDataSanitizeStrings(CharacterListHTML)
390390

391391
dataNoTags := RemoveHtmlTag(CharacterListHTML)

0 commit comments

Comments
 (0)