Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(core): replace the `reexecute` dictionary entry with `re-execute` (#4042)

Mauro Pereiraeca88ee46fec
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index 4bb3e4f8f..0c553b5ea 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -42036,6 +42036,7 @@ re/PNSg(vz
re-enable/VdSG
re-enslave/VdSG
re-enslavement/Nmg
+re-execute/VdSG
reach/~VdGSNgB
reachable/~JNU
reacquire/VdSG
@@ -42322,7 +42323,6 @@ reelect/VdSG
# reëlect
reentrant/J
reeve/~NVG
-reexecute/VSdG
reexport/VdGSN
ref/~NSgVZ
refabricate/VGdS
diff --git a/harper-core/src/linting/disjoint_prefixes.rs b/harper-core/src/linting/disjoint_prefixes.rs
index 8564488dc..7fa056da9 100644
--- a/harper-core/src/linting/disjoint_prefixes.rs
+++ b/harper-core/src/linting/disjoint_prefixes.rs
@@ -206,4 +206,12 @@ mod tests {
"My hobby is de-extinction of the dinosaurs.",
);
}
+
+ #[test]
+ fn dont_join_hyphenated_re_execute_3954() {
+ assert_no_lints(
+ "I saw re-execute flagged with DisjointPrefixes.",
+ DisjointPrefixes::new(FstDictionary::curated()),
+ );
+ }
}