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

Update filter type to allow mixed string and RegExp arrays #1327

Merged
merged 3 commits into from
Sep 12, 2023
Merged

Update filter type to allow mixed string and RegExp arrays #1327

merged 3 commits into from
Sep 12, 2023

Conversation

stephenwade
Copy link
Contributor

This PR updates the FilterPattern type to accept mixed string and RegExp arrays. This allows the user to pass an array containing both strings and regular expressions when using npm-check-updates programmatically.

This PR only changes types. It doesn't change any runtime behavior.

@raineorshine
Copy link
Owner

Thanks!

There was one small change of runtime behavior I needed to make (3aaf995). Luckily the unit test I wrote picked it up immediately.

@raineorshine raineorshine merged commit 9cc0671 into raineorshine:main Sep 12, 2023
9 checks passed
@stephenwade stephenwade deleted the string-regexp-type branch September 12, 2023 23:07
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.

2 participants