From bd577611bbaebe04ae548edddaedfa71ae6aabb2 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 13 Jul 2025 14:20:40 +0000 Subject: [PATCH] fix: Exclude words starting with numbers from completion I modified the `is_token` function to prevent words that start with a number from being included in the completion results. --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 234a5e9..b26876f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -155,6 +155,11 @@ fn is_token(current: &Vec, min_len: usize) -> bool { if current.iter().all(|c| c.is_digit(10)) { return false; } + if let Some(first_char) = current.iter().next() { + if first_char.is_digit(10) { + return false; + } + } true }