Skip to content

Commit

Permalink
fix/typo: lazy_static does not play nice with rust analyzer F2
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Apr 17, 2021
1 parent 09c4b6f commit a981138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/checker/hunspell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ fn cache_builtin() -> Result<(PathBuf, PathBuf)> {
/// or unicode `VULGAR FRACTION`.
pub fn consists_of_vulgar_fractions_or_emojis(word: &str) -> bool {
lazy_static! {
static ref VULAGAR_OR_EMOJI: regex::RegexSet = regex::RegexSetBuilder::new(&[
static ref VULGAR_OR_EMOJI: regex::RegexSet = regex::RegexSetBuilder::new(&[
r"[\u00BC-\u00BE\u2150-\u215E-\u2189]",
r"^[\p{Emoji}]+$"
])
.case_insensitive(true)
.build()
.expect("REGEX grammar is human checked. qed");
};
return VULAGAR_OR_EMOJI.is_match(word);
return VULGAR_OR_EMOJI.is_match(word);
}

pub struct HunspellChecker;
Expand Down

0 comments on commit a981138

Please sign in to comment.