X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=b06d8a113d8fce4f178b0e1f54783704761cc487;hp=862d9e8f39ca7e11d26921bd62e8398738dd5ce7;hb=26fce4ae605d6315bd2732ba3607ac30138e67b4;hpb=904eafaefc356b654842ff59de6afc17f24ccf17;ds=sidebyside diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 862d9e8f..b06d8a11 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -550,7 +550,7 @@ notmuch-after-tag-hook will be run." ;; Perform some validation (when (null tags) (error "No tags given")) (mapc (lambda (tag) - (unless (string-match-p "^[-+][-+_.[:word:]]+$" tag) + (unless (string-match-p "^[-+]\\S-+$" tag) (error "Tag must be of the form `+this_tag' or `-that_tag'"))) tags) (run-hooks 'notmuch-before-tag-hook)