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

Feature/blacklist with regex #1278

Merged
merged 3 commits into from
Mar 18, 2019
Merged

Feature/blacklist with regex #1278

merged 3 commits into from
Mar 18, 2019

Conversation

narinluangrath
Copy link
Contributor

@narinluangrath narinluangrath commented Mar 18, 2019

Implements feature #1275

Allows you to define the voronoiBlacklist prop using strings or regular expressions. I decided to use lodash's isRegExp function instead of x instanceof RegExp because it seemed more robust.

Narin Luangrath added 2 commits March 17, 2019 18:27
- Adds regExp custom proptype
- Updates voronoi-helpers's getDatasets method
@narinluangrath narinluangrath requested a review from boygirl March 18, 2019 01:36
@boygirl
Copy link
Contributor

boygirl commented Mar 18, 2019

@narinluangrath nice! Thanks for this feature

@boygirl boygirl merged commit 842145a into master Mar 18, 2019
@boygirl boygirl deleted the feature/blacklist-with-regex branch March 18, 2019 18:49
brendanmorrell added a commit to brendanmorrell/victory that referenced this pull request Feb 19, 2022
typings for ```voronoiBlacklist``` do not currently include regular expressions, which are supported as of [this](FormidableLabs#1278) PR. This changes the type so ```voronoiBlacklist``` correctly allows both strings and regular expressions.
dlcartright pushed a commit that referenced this pull request Mar 5, 2022
typings for ```voronoiBlacklist``` do not currently include regular expressions, which are supported as of [this](#1278) PR. This changes the type so ```voronoiBlacklist``` correctly allows both strings and regular expressions.
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