Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: specific instance of #142
Elijah Potterbc0a585f95f1
diff --git a/harper-core/src/lexing/url.rs b/harper-core/src/lexing/url.rsindex 95a829d79..91e3b53c9 100644--- a/harper-core/src/lexing/url.rs+++ b/harper-core/src/lexing/url.rs@@ -104,7 +104,7 @@ fn valid_scheme_char(c: char) -> bool {}fn is_reserved(c: char) -> bool {- matches!(c, ';' | '/' | '?' | ':' | '@' | '&' | '=')+ matches!(c, ';' | '/' | '?' | ':' | '@' | '&' | '=' | '#')}fn is_safe(c: char) -> bool {@@ -231,6 +231,11 @@ mod tests {assert_consumes_full("https://elijahpotter.dev/articles/quantifying_hope_on_a_global_scale")}+ #[test]+ fn consumes_issue_142() {+ assert_consumes_full("https://github.com/nodesource/distributions#debinstall")+ }+/// Tests that the URL parser will not throw a panic under some random/// situations.#[test]