Issue Description:
The regular expressions (feature/**|feature*) and (feature*|feature/**) yield inconsistent results when matching the string feature/test/test. Specifically:
(feature/**|feature*) does not match feature/test/test.
(feature*|feature/**) does match feature/test/test.
This behavior seems unexpected, as both expressions appear to be logically similar. Could you please clarify why this inconsistency occurs and provide guidance on the correct usage of these patterns?
Steps to Reproduce:
- Use the regular expression
(feature/**|feature*) to match the string feature/test/test.
- Use the regular expression
(feature*|feature/**) to match the same string.
Expected Result:
Both expressions should either match or not match the string consistently.
Actual Result:
The first expression does not match, while the second one does.
Additional Context:
This issue might be related to the order of patterns in the alternation (|) or the interpretation of the * and /** operators. Any insights or documentation on this behavior would be greatly appreciated.
Thank you!