From c3b21783adfb761f98f1201e484f083e0b936545 Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Sun, 11 Jan 2026 14:11:50 -0500 Subject: Also clean apostrophes when adding new card --- add.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/add.go b/add.go index 9d25288..9f555de 100644 --- a/add.go +++ b/add.go @@ -45,6 +45,8 @@ type options struct { func addCard(c *http.Client, apiURL, deckName, modelName, front, back string) tea.Cmd { return func() tea.Msg { front = strings.TrimSpace(front) + // Replace apostrophes (possible if copy-pasting) with single quotes + front = strings.ReplaceAll(front, `’`, `'`) if back == "" { return errMsg(errors.New("definition is blank")) } -- cgit v1.2.3