KinsonDigital / BranchValidator

Validates branch names for the organization projects
MIT License
5 stars 1 forks source link

🚧Fix issue with matching patterns #57

Open CalvinWilkinson opened 2 years ago

CalvinWilkinson commented 2 years ago

Complete The Item Below

Description

Currently, the translation between the custom action glob matching syntax and regex syntax has an issue.

feature/setup-build-project

This was discovered when using the same code while playing around with Nuke build system framework.

Possible Solution:

  1. The problems are that the globbing pattern needs to always start with a '^' symbol and end with a '$' symbol.
  2. This could possibly just be fixed by improving the regex used. Attempt this solution first.

Also, the RegexOptions.IgnoreCase needs to NOT be used at all. Currently, if the value above had a 'Tfor the wordproject` ad the end, it would still pass. Remove case sensitivity.

Remove the MatchType. enum and its use case as well

Acceptance Criteria

ToDo Items

Issue Dependencies

No response

Related Work

No response

Additional Information:

Change Type Labels

Change Type Label
Bug Fixes 🐛bug
Breaking Changes 🧨breaking changes
New Feature ✨new feature
Workflow Changes workflow
Code Doc Changes 🗒️documentation/code
Product Doc Changes 📝documentation/product

Priority Type Labels

Priority Type Label
Low Priority low priority
Medium Priority medium priority
High Priority high priority

Code of Conduct