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

Add unit lookup #51

Merged
merged 2 commits into from
Oct 8, 2020
Merged

Add unit lookup #51

merged 2 commits into from
Oct 8, 2020

Conversation

Jontem
Copy link
Contributor

@Jontem Jontem commented Oct 8, 2020

In v4.0.0 we addressed a performance issue with looking up units. But the feature for case insensitive units was removed. This PR creates a unitLookup function instead which takes unitString as a parameter and returns the matching unit. In this way we can still have case insesitve units and perfomance. It will be up to the consumer to implement the lookup

@Jontem Jontem merged commit a733089 into master Oct 8, 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.

1 participant