Add no dash character list allowed in Strings parseCharacterRanges function

Same rules with returning unique elements array
This commit is contained in:
Clemens Schwaighofer
2026-01-14 10:49:14 +09:00
parent cd65604073
commit 2889012592
3 changed files with 10 additions and 0 deletions

View File

@@ -743,6 +743,11 @@ final class CoreLibsConvertStringsTest extends TestCase
'abcdefghijklmnopqrstuvwxyz0123',
null,
],
'range without dashes' => [
['abcddfff'],
'abcdf',
null,
],
'invalid ranges' => [
['a-あ', 'A-あ', '0-あ'],
'',