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 comment block detection and handling per tap specification #9

Closed

Conversation

abrenneke
Copy link

TAP Version 13 says that comment blocks can be indented with any number
of spaces. Changed detection regexes to match specification and added
detection to remove the correct number of spaces from each line in the
comment block. Removed the --- and ... lines as they're not valid YAML.

Fixes #8

TAP Version 13 says that comment blocks can be indented with any number
of spaces. Changed detection regexes to match specification and added
detection to remove the correct number of spaces from each line in the
comment block. Removed the --- and ... lines as they're not valid YAML.
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@0124968). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master       #9   +/-   ##
=========================================
  Coverage          ?   97.88%           
=========================================
  Files             ?        1           
  Lines             ?      189           
  Branches          ?        0           
=========================================
  Hits              ?      185           
  Misses            ?        4           
  Partials          ?        0
Impacted Files Coverage Δ
index.js 97.88% <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 0124968...3ff9fe7. Read the comment docs.

@scottcorgan
Copy link
Member

Thanks! Good catch.

Can I get you to add a test that proves the change? Then it's mergeable! 🎉

@abrenneke
Copy link
Author

abrenneke commented Feb 15, 2017 via email

@abrenneke
Copy link
Author

Also if you have any idea how to rewrite removeCommentBlockPadding using R.lift instead of R.converge I'm all for it, I really couldn't figure out lift

@abrenneke abrenneke force-pushed the fix-yaml-indent-parsing branch from 541081f to 0dbc466 Compare February 21, 2017 08:40
@abrenneke
Copy link
Author

Sorry about the delay @scottcorgan, work kept me busy. I've added tests which fail on @tap-format/parser/master and succeed in my branch.

I can squash the two commits if you'd like.

@abrenneke abrenneke closed this Feb 10, 2021
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.

Should support comment blocks at any indentation level
3 participants