Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(core): allow numbers in `ExactPhrase`
Elijah Potterf8092ab59dde
diff --git a/harper-core/src/patterns/exact_phrase.rs b/harper-core/src/patterns/exact_phrase.rsindex 093f81ab1..f6075962e 100644--- a/harper-core/src/patterns/exact_phrase.rs+++ b/harper-core/src/patterns/exact_phrase.rs@@ -31,6 +31,10 @@ impl ExactPhrase {TokenKind::ParagraphBreak => {phrase = phrase.then_whitespace();}+ TokenKind::Number(n) => {+ phrase = phrase+ .then(move |tok: &Token, _source: &[char]| tok.kind == TokenKind::Number(n))+ }_ => panic!("Fell out of expected document formats."),}}