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
Preserve input order for the returned matching paths #30
Conversation
The behavior needs to be documented in the readme and index.d.ts. |
@ThanveerulHuq Friendly bump :) |
@sindresorhus Added changes based on PR comment |
⬆️ |
result moved closer to the for loop
@sindresorhus commented issues fixed and added documentation in readme and index.d.ts |
index.d.ts
Outdated
@@ -9,7 +9,7 @@ Extends [`minimatch.match()`](https://github.com/isaacs/minimatch#minimatchmatch | |||
|
|||
@param paths - Paths to match against. | |||
@param patterns - Globbing patterns to use. For example: `['*', '!cake']`. See supported [`minimatch` patterns](https://github.com/isaacs/minimatch#usage). | |||
@returns The matching paths. | |||
@returns The matching paths in the order input paths. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
The PR could use a better title. |
Preserve list ordering with multiple patterns #14 issue fixed
Fixes #14