Further wiki slug normalization
This commit is contained in:
@@ -170,11 +170,13 @@ func TestMatchExistingNodeBBPagePrefersGeneratedPublicSlug(t *testing.T) {
|
||||
|
||||
func TestDeploySlugifyWikiTitleMatchesGeneratedSlugPolicy(t *testing.T) {
|
||||
tests := map[string]string{
|
||||
`Grandmaster's Battle Momentum`: "grandmasters-battle-momentum",
|
||||
`Bigby’s Clenched Fist`: "bigbys-clenched-fist",
|
||||
`Hardiness vs. Enchantments`: "hardiness-vs-enchantments",
|
||||
`Clairaudience/Clairvoyance`: "clairaudience-clairvoyance",
|
||||
`Élite & Noble Houses`: "elite-noble-houses",
|
||||
`Grandmaster's Battle Momentum`: "grandmasters-battle-momentum",
|
||||
`Bigby’s Clenched Fist`: "bigbys-clenched-fist",
|
||||
`Hardiness vs. Enchantments`: "hardiness-vs-enchantments",
|
||||
`Clairaudience/Clairvoyance`: "clairaudience-clairvoyance",
|
||||
`Élite & Noble Houses`: "elite-noble-houses",
|
||||
`Alpha!@#$%^&*()[]-=_+/?.,<>` + "`" + `~|\Omega`: "alpha-omega",
|
||||
`Æther Œuvre Øresund Straße Þorn Łódź Đelta`: "aether-oeuvre-oresund-strasse-thorn-lodz-delta",
|
||||
}
|
||||
for input, want := range tests {
|
||||
if got := slugifyWikiTitle(input); got != want {
|
||||
|
||||
Reference in New Issue
Block a user