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 #309: Not to include \0 in the resulted token by scanBlockScalar #310

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

tom-tan
Copy link
Contributor

@tom-tan tom-tan commented Sep 21, 2022

This request fixes #309 by changing scanBlockScalar not to include \0 in the resulted token.
I also added a unittest for it.

@codecov
Copy link

codecov bot commented Sep 21, 2022

Codecov Report

Merging #310 (7939f44) into master (acba077) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #310   +/-   ##
=======================================
  Coverage   95.20%   95.20%           
=======================================
  Files          29       29           
  Lines        4564     4569    +5     
=======================================
+ Hits         4345     4350    +5     
  Misses        219      219           
Impacted Files Coverage Δ
source/dyaml/scanner.d 99.65% <100.00%> (+<0.01%) ⬆️

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 acba077...7939f44. Read the comment docs.

@Herringway
Copy link
Member

Herringway commented Sep 21, 2022

Simple and tested, just the way I like it. Thanks!

@Herringway Herringway merged commit 9456888 into dlang-community:master Sep 21, 2022
@tom-tan tom-tan deleted the issue309 branch September 21, 2022 23:33
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.

Multiline string that does not end with newline is accidentally parsed as a string that ends with '\0'
2 participants