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

fix(parseToRGB): Not covered invalid input #323

Merged
merged 4 commits into from Jun 28, 2018
Merged

fix(parseToRGB): Not covered invalid input #323

merged 4 commits into from Jun 28, 2018

Conversation

tobilen
Copy link
Contributor

@tobilen tobilen commented Jun 27, 2018

After upgrading to flow 0.75, i discovered that there is a case of invalid input that gets through the regex of the hsl matcher but not the one extracting color values from rgb. This PR should prevent this possibility.

@codecov
Copy link

codecov bot commented Jun 27, 2018

Codecov Report

Merging #323 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #323   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          70     70           
  Lines         388    392    +4     
  Branches      102    104    +2     
=====================================
+ Hits          388    392    +4
Impacted Files Coverage Δ
src/color/parseToRgb.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7481d96...3d9e3e2. Read the comment docs.

@bhough
Copy link
Contributor

bhough commented Jun 27, 2018

Thanks @tobilen I will take a look and try to get a release cut tonight.

@bhough bhough changed the title Fix not covered invalid input fix(parseToRGB): Not covered invalid input Jun 28, 2018
@bhough bhough merged commit dc2e76f into styled-components:master Jun 28, 2018
@tobilen tobilen deleted the update-flow branch July 11, 2018 06:06
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.

None yet

2 participants