emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote d3a537d065 2/6: Regex to allow for non-ASCII cha


From: ELPA Syncer
Subject: [elpa] externals/denote d3a537d065 2/6: Regex to allow for non-ASCII characters in title and tags
Date: Sun, 24 Jul 2022 21:57:28 -0400 (EDT)

branch: externals/denote
commit d3a537d065a9d9a8204b41106d0fcdb760562e74
Author: Peter Prevos <peter@prevos.net>
Commit: Peter Prevos <peter@prevos.net>

    Regex to allow for non-ASCII characters in title and tags
---
 denote-faces.el | 4 ++--
 denote.el       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/denote-faces.el b/denote-faces.el
index b58cc67610..25e09fdedd 100644
--- a/denote-faces.el
+++ b/denote-faces.el
@@ -85,8 +85,8 @@ and seconds."
 ;; For character classes, evaluate: (info "(elisp) Char Classes")
 (defvar denote-faces--file-name-regexp
   (concat "\\(?1:[0-9]\\{8\\}\\)\\(?2:T[0-9]\\{6\\}\\)"
-          "\\(?:\\(?3:--\\)\\(?4:[[:alnum:]-]*\\)\\)?"
-          "\\(?:\\(?5:__\\)\\(?6:[[:alnum:]_-]*\\)\\)?"
+          "\\(?:\\(?3:--\\)\\(?4:[[:alnum:][:nonascii:]-]*\\)\\)?"
+          "\\(?:\\(?5:__\\)\\(?6:[[:alnum:][:nonascii:]_-]*\\)\\)?"
           "\\(?7:\\..*\\)?$")
   "Regexp of file names for fontification.")
 
diff --git a/denote.el b/denote.el
index 1d3ef229bd..c0fc3450fb 100644
--- a/denote.el
+++ b/denote.el
@@ -315,10 +315,10 @@ are described in the doc string of `format-time-string'."
 (defconst denote--id-regexp "\\([0-9]\\{8\\}\\)\\(T[0-9]\\{6\\}\\)"
   "Regular expression to match `denote--id-format'.")
 
-(defconst denote--title-regexp "--\\([[:alnum:]-]*\\)"
+(defconst denote--title-regexp "--\\([[:alnum:][:nonascii:]-]*\\)"
   "Regular expression to match the title field.")
 
-(defconst denote--keywords-regexp "__\\([[:alnum:]_-]*\\)"
+(defconst denote--keywords-regexp "__\\([[:alnum:][:nonascii:]_-]*\\)"
   "Regular expression to match keywords.")
 
 (defconst denote--extension-regexp "\\.\\(org\\|md\\|txt\\)"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]