nanomatch icon indicating copy to clipboard operation
nanomatch copied to clipboard

`matchingPatterns` method

Open epszaw opened this issue 4 years ago • 1 comments

Description

This PR adds .matchingPatterns methods, which returns matched patterns. It's very useful, when you need to determine required patterns by given strings and then use them.

To help the project's maintainers and community to quickly understand the nature of your pull requeset, please create a description that incorporates the following elements:

This PR doesn't contain any breaking changes.

I didn't add support for negative lookup, because I can't imaging use-cases for them. But, if you think, that them also should be implemented – let me know.

New Feature

  • [x] If this is a big feature with breaking changes, consider opening an issue to discuss first. This is completely up to you, but please keep in mind that your pr might not be accepted.
  • [x] Run unit tests to ensure all existing tests are still passing
  • [x] Add new passing unit tests to cover the code introduced by your pr
  • [x] Update the readme (see readme advice)
  • [x] Add your info to the contributors array in package.json!

epszaw avatar Feb 22 '21 21:02 epszaw

@jonschlinkert can someone make review of these changes? :)

epszaw avatar Mar 04 '21 17:03 epszaw