sudo-rs
sudo-rs copied to clipboard
Simple bracket expressions
trafficstars
I decided to go with the existing loop style as the wildcard_match function for continuity, simplicity, and index control. With this draft I have a few questions:
- Can I assume that the incoming patterns are formatted correctly? So nothing weird like
[[[//**//]]]or invalid patterns such as[]. - Should I include room for things like
[a-],[-a], or[\w]? - Should combinations of the wildcard and brackets within a single pattern be possible?
Thank you for your time and comments :grin: