diff options
| -rw-r--r-- | add.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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")) } |
