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:
Owen Leibman
2021-06-16 07:42:32 -07:00
committed by Mark Baker
parent d88af46ab5
commit d0dd5b4594
4 changed files with 22 additions and 33 deletions
@@ -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,
],
];