diff options
| author | Ben Bridle <bridle.benjamin@gmail.com> | 2026-09-07 14:14:37 +1200 |
|---|---|---|
| committer | Ben Bridle <bridle.benjamin@gmail.com> | 2026-09-07 14:14:37 +1200 |
| commit | 8b1985c5c875763fb042aced6d170eabce04be2c (patch) | |
| tree | 637c1915bc3de7bb747870a77a5573c86c78a098 | |
| parent | 08a0b9ee5ab9ebb7d45592356d869cfd2bc7dee2 (diff) | |
| download | toaster-8b1985c5c875763fb042aced6d170eabce04be2c.zip | |
When toaster auto-replaces regular quote characters with directional
variants, any quote characters placed after the end of a sentence will
now correctly point to the left.
| -rw-r--r-- | src/string_utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_utils.rs b/src/string_utils.rs index cceb575..3c3b2e6 100644 --- a/src/string_utils.rs +++ b/src/string_utils.rs @@ -107,7 +107,7 @@ pub fn sanitize_text(text: &str, fancy: bool) -> String { true => chars[i + 1], false => ' ', }; - let is_whitespace = |c: char| c.is_whitespace() || "()[].,".contains(c); + let is_whitespace = |c: char| c.is_whitespace() || "()[]".contains(c); match c { '&' => { |
