diff options
| author | Christian Schneider | 2026-03-31 18:47:31 +0200 |
|---|---|---|
| committer | Christian Schneider | 2026-03-31 18:47:31 +0200 |
| commit | 074fbc730e77c2bfc913ca50e51045f958953e05 (patch) | |
| tree | 5ada8740737611b5669cd3b645cb5fc8ef39a915 /test/it.t | |
| parent | 7211d0baed1e77db85ab0c21062ddeeecac7caaf (diff) | |
| download | itools-074fbc730e77c2bfc913ca50e51045f958953e05.tar.gz itools-074fbc730e77c2bfc913ca50e51045f958953e05.tar.bz2 itools-074fbc730e77c2bfc913ca50e51045f958953e05.zip | |
Remove combining characters at beginning of string in it::any2utf8() (mail8281)
Diffstat (limited to 'test/it.t')
| -rwxr-xr-x | test/it.t | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -470,6 +470,7 @@ is(it::any2utf8([1, true, false, null]), [1, true, false, null], "any2utf8 shoul is(it::any2utf8([it::utf8_decode('Müller') => it::utf8_decode('Müller')]), ['Müller' => 'Müller'], "it::any2utf8 latin1 keys"); is(it::any2utf8("\xc2\xad"), "", "it::any2utf8 remove soft hyphens"); +is(it::any2utf8("\u{0338}\u{0338}a\u{0338}b"), "a\u{0338}b", "it::any2utf8 remove combining characters at beginning"); foreach ([ 'a' => 'ä', 'e' => 'ë', 'i' => 'ï', 'o' => 'ö', 'u' => 'ü' ] as $src => $dst) { |