plone / plone.i18n

Text normalization logic and language, country, cctld data.
8 stars 11 forks source link

Be more thorough when removing whitespace in URLNormalizer #1

Closed jean closed 12 years ago

jean commented 12 years ago

Before:

(Pdb) queryUtility(IURLNormalizer).normalize('a b')
'a-b'
(Pdb) queryUtility(IURLNormalizer).normalize('a\nb')
'a\nb'

After:

(Pdb) queryUtility(IURLNormalizer).normalize('a b')
'a-b'
(Pdb) queryUtility(IURLNormalizer).normalize('a\nb')
'a-b'