diff options
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, |
