Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match Last Regex #75

Closed
hexiro opened this issue Aug 26, 2021 · 0 comments
Closed

Match Last Regex #75

hexiro opened this issue Aug 26, 2021 · 0 comments

Comments

@hexiro
Copy link

hexiro commented Aug 26, 2021

Hello!
I was wondering if it's possible to make the sorter use the last regex matched.

The way I assume it works right now is it goes through the list of regexes in order and stops when it finds a match.
Maybe it could first reverse the list and then find the first match? (which would be the last match)
This would make it easier to setup a sorting order where a regex can match multiple statements!

If there's already a way to do this that I'm not aware of please let me know!

@hexiro hexiro closed this as completed Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant