Merge pull request #1145 from epage/dict
Some checks are pending
Security audit / security_audit (push) Waiting to run
Security audit / cargo_deny (bans licenses sources) (push) Waiting to run
CI / CI (push) Blocked by required conditions
CI / Test (push) Waiting to run
CI / Check MSRV (push) Waiting to run
CI / lockfile (push) Waiting to run
CI / Docs (push) Waiting to run
CI / rustfmt (push) Waiting to run
CI / clippy (push) Waiting to run
CI / Coverage (push) Waiting to run
/ linux (aarch64) (push) Waiting to run
/ linux (x86) (push) Waiting to run
/ linux (x86_64) (push) Waiting to run
/ musllinux (aarch64) (push) Waiting to run
/ musllinux (x86_64) (push) Waiting to run
/ windows (x64) (push) Waiting to run
/ windows (x86) (push) Waiting to run
/ macos (aarch64) (push) Waiting to run
/ macos (x86_64) (push) Waiting to run
/ sdist (push) Waiting to run
/ Release (push) Blocked by required conditions
pre-commit / pre-commit (push) Waiting to run

test(dict): Don't use unverified varcon
This commit is contained in:
Ed Page 2024-11-05 15:39:10 -06:00 committed by GitHub
commit 5998867388
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -194,6 +194,7 @@ fn varcon_words() -> HashSet<UniCase<&'static str>> {
// dictionary // dictionary
varcon::VARCON varcon::VARCON
.iter() .iter()
.filter(|c| c.verified)
.flat_map(|c| c.entries.iter()) .flat_map(|c| c.entries.iter())
.flat_map(|e| e.variants.iter()) .flat_map(|e| e.variants.iter())
.map(|v| UniCase::new(v.word)) .map(|v| UniCase::new(v.word))