Skip to content

Commit c9c754d

Browse files
authored
adding sanitize of nbsp space string (#100)
fix #97
1 parent 5808c10 commit c9c754d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TibiaCharactersCharacterV3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ func TibiaCharactersCharacterV3Impl(BoxContentHTML string) CharacterResponse {
330330
DeathKillers := []Killers{}
331331
DeathAssists := []Killers{}
332332

333-
// store for reply later on..
334-
ReasonString := RemoveHtmlTag(subma1[0][2] + " at Level " + subma1[0][3] + " by " + subma1[0][4] + ".")
333+
// store for reply later on.. and replacing \u00A0 with normal space
334+
ReasonString := TibiaDataSanitizeNbspSpaceString(RemoveHtmlTag(subma1[0][2] + " at Level " + subma1[0][3] + " by " + subma1[0][4] + "."))
335335

336336
// if kill is with assist..
337337
if strings.Contains(subma1[0][4], ". Assisted by ") {

0 commit comments

Comments
 (0)