Skip to content

Commit

Permalink
fix(buffer): add back missing brackets in regex
Browse files Browse the repository at this point in the history
These were accidentally dropped in #964
  • Loading branch information
stefanboca committed Feb 6, 2025
1 parent 575784f commit 9f32ef5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/blink/cmp/fuzzy/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ mod fuzzy;
mod keyword;
mod lsp_item;

static REGEX: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"\p{L}_[\p{L}0-9_\\-]{2,}").unwrap());
static REGEX: LazyLock<Regex> =
LazyLock::new(|| Regex::new(r"[\p{L}_][\p{L}0-9_\\-]{2,}").unwrap());
static FRECENCY: LazyLock<RwLock<Option<FrecencyTracker>>> = LazyLock::new(|| RwLock::new(None));
static HAYSTACKS_BY_PROVIDER: LazyLock<RwLock<HashMap<String, Vec<LspItem>>>> =
LazyLock::new(|| RwLock::new(HashMap::new()));
Expand Down

0 comments on commit 9f32ef5

Please sign in to comment.