diff options
| author | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-11 13:35:30 -0500 |
|---|---|---|
| committer | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-11 13:35:30 -0500 |
| commit | 32acf8c4940b5e7088b0651d5e7ea480afee9e7b (patch) | |
| tree | 17089d438ecad90a181c6d46c11359254b139032 /setup.go | |
| parent | 6f5a49c07b20c77907a8d0578dedf1197979a16b (diff) | |
Clean up apostrophes
Diffstat (limited to 'setup.go')
| -rw-r--r-- | setup.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -125,6 +125,10 @@ func populateDictionary(rawDictionary string, db *sql.DB) error { continue } + // Clean up the word. Replace apostrophes (common in phrases) with + // single quotes (more likely to be typed by a user). + result.Word = strings.ReplaceAll(result.Word, `’`, `'`) + // Create the definition text. entry := templateReadyDictionaryEntry{ Word: result.Word, |
