-Like
behaves not commutative - this is expected.
Some points:
- A summary of the discussion above in the comments: Commutativity would introduce ambiguity:
'Hello.*' -like 'Hello?'
- would this returntrue
orfalse
were-like
commutative? Therefor wildcard characters are only allowed on the right side. If they appear on the left size, they are considered literals - not wildcards.
If someone else has other valid points: feel free to edit or give a better answer.