From d2ab7e2405ff76b28918ef5cc17b591483828896 Mon Sep 17 00:00:00 2001 From: Jeremiah England Date: Sat, 14 Oct 2023 01:25:50 -0400 Subject: [PATCH] chore: Improve warning message for invalid abbreviations --- src/aw_watcher_ask_away/dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aw_watcher_ask_away/dialog.py b/src/aw_watcher_ask_away/dialog.py index f69371e..8717902 100644 --- a/src/aw_watcher_ask_away/dialog.py +++ b/src/aw_watcher_ask_away/dialog.py @@ -240,7 +240,7 @@ def save_new_abbreviation(self, event=None, *, long: bool = False): # noqa: ARG abbr = abbr.strip() expansion = expansion.strip() if not re.fullmatch(r"\w+", abbr): - messagebox.showerror("Invalid abbreviation", "Abbreviations must be alphanumeric.") + messagebox.showerror("Invalid abbreviation", "Abbreviations must be alphanumeric and without spaces.") return if existing := abbreviations.get(abbr):