zesterer / ariadne

A fancy diagnostics & error reporting crate
https://crates.io/crates/ariadne
MIT License
1.61k stars 72 forks source link

Fix crashes when using Byte Spans. #107

Closed VonTum closed 3 months ago

VonTum commented 3 months ago

This pull request does include a breaking change, namely Source::get_line_text now returns the full line, including trailing whitespace and newline.

It also includes a new test, ensuring that no possible byte span in a small excerpt causes a crash.

zesterer commented 3 months ago

Thanks for the PR!