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

support regex in aliases #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blagerweij
Copy link

Added support for regex in aliases, so that we can use regular expressions to map to the main license

@blagerweij
Copy link
Author

Currently this PR just assumes that all aliases are regexes, we could improve (and make it more backwards compatible) by changing the alias syntax like this:
"The Apache License, Version 2.0",
"/(The\s)?Apache License, [vV]ersion 2(\.0)/"

(so only when the string starts and ends with a forward slash, we assume it's a regex.) Feedback welcome

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

Successfully merging this pull request may close these issues.

1 participant