tpl: Fix countwords to handle special chars

Fixes #8479
This commit is contained in:
Julien Midedji
2021-05-03 09:10:06 +02:00
committed by GitHub
parent e1c328df25
commit 7a2c10ae60
2 changed files with 13 additions and 0 deletions

View File

@@ -210,6 +210,9 @@ func TestCountWords(t *testing.T) {
{"Do Be Do Be Do", 5},
{"旁边", 2},
{`<div class="test">旁边</div>`, 2},
{"Here's to you...", 3},
{"Heres to you...", 3},
{"Heres to you…", 3},
// errors
{tstNoStringer{}, false},
} {