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 capitalize warning #1179

Merged
merged 2 commits into from
Feb 23, 2018
Merged

fix capitalize warning #1179

merged 2 commits into from
Feb 23, 2018

Conversation

Rich-Harris
Copy link
Member

The current 'is the component name capitalized?' check disregards the possibility of the first character being _ or $. The upcoming version of Sapper has components with names like _4xx and _5xx, so this PR checks that the first character isn't a-z rather than checking that it is A-Z. I think that's a sensible fix

@codecov-io
Copy link

codecov-io commented Feb 18, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1179   +/-   ##
=======================================
  Coverage   91.75%   91.75%           
=======================================
  Files         127      127           
  Lines        4572     4572           
  Branches     1495     1495           
=======================================
  Hits         4195     4195           
  Misses        159      159           
  Partials      218      218
Impacted Files Coverage Δ
src/validate/index.ts 89.09% <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 8330f32...fdd9ada. Read the comment docs.

@PaulBGD
Copy link
Member

PaulBGD commented Feb 19, 2018

Should throw a test in there ;)

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.

4 participants