mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-09 13:26:33 +00:00
Use WildcardMatch
Per suggestion from @MarkBaker. WildcardMatch did not handle double tilde correctly. It has been changed to do so and its logic simplified (and commented). Existing AutoFilter test covered this situation, but I added a test for MATCH as well.
This commit is contained in:
@@ -346,4 +346,10 @@ return [
|
||||
['Obtuse', 'Amuse', 'Obverse', 'Inverse', 'Assurance', 'Amplitude', 'Adverse', 'Apartment'],
|
||||
0,
|
||||
],
|
||||
[
|
||||
3, // Expected
|
||||
'*~~*', // contains a tilde
|
||||
['aAAAAA', 'a123456*c', 'abc~xyz', 'alembic'],
|
||||
0,
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user