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

Preserve input order for the returned matching paths #30

Merged
merged 8 commits into from Oct 12, 2020

Conversation

ThanveerulHuq
Copy link
Contributor

@ThanveerulHuq ThanveerulHuq commented Oct 5, 2019

Preserve list ordering with multiple patterns #14 issue fixed

Fixes #14

@sindresorhus
Copy link
Owner

The behavior needs to be documented in the readme and index.d.ts.

test/test.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

@ThanveerulHuq Friendly bump :)

@ThanveerulHuq
Copy link
Contributor Author

@sindresorhus Added changes based on PR comment

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

The behavior needs to be documented in the readme and index.d.ts.

⬆️

thanveer added 2 commits August 23, 2020 13:16
result moved closer to the for loop
@ThanveerulHuq
Copy link
Contributor Author

@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.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

readme.md Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

The PR could use a better title.

@ThanveerulHuq ThanveerulHuq changed the title enabled ordering of lists Preserve list ordering Sep 3, 2020
readme.md Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
@sindresorhus sindresorhus changed the title Preserve list ordering Preserve input order for the returned matching paths Oct 12, 2020
@sindresorhus sindresorhus merged commit 18d778b into sindresorhus:master Oct 12, 2020
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.

Preserve list ordering with multiple patterns
2 participants