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 handling of CRs in debugging comments (#1132) #1134

Merged
merged 2 commits into from
Jan 26, 2018
Merged

Conversation

Conduitry
Copy link
Member

Fixes #1132.

Build failures are unrelated, and are from #1127.

Carriage returns \r were being kept in the debugging comments, which produced invalid javascript. Changing the regex to replace \n or \r with spaces worked, but it seemed slightly safer/tidier to just replace all whitespace \s with spaces.

This does not extend the runtime tests to also try compiling each component with LF replaced with CRLF. For some mysterious reason, the method I was trying (doing the replace in the require hook according to the value of a flag) was just not working - I want to revisit that, either later in this PR, or in another issue/PR.

@Rich-Harris Rich-Harris merged commit 935d4a2 into master Jan 26, 2018
@Rich-Harris Rich-Harris deleted the gh-1132 branch January 26, 2018 18:49
@codecov-io
Copy link

codecov-io commented Jan 26, 2018

Codecov Report

Merging #1134 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1134   +/-   ##
=======================================
  Coverage   91.48%   91.48%           
=======================================
  Files         125      125           
  Lines        4522     4522           
  Branches     1459     1459           
=======================================
  Hits         4137     4137           
  Misses        163      163           
  Partials      222      222
Impacted Files Coverage Δ
src/utils/createDebuggingComment.ts 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 86a0765...1bb275b. Read the comment docs.

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.

3 participants