Skip to content

Commit

Permalink
chore: Improve warning message for invalid abbreviations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah-England committed Oct 14, 2023
1 parent 39a5b33 commit d2ab7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aw_watcher_ask_away/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d2ab7e2

Please sign in to comment.