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

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

[elpa] externals/denote 24371b4c86 129/355: fix: Update the identifier r


From: ELPA Syncer
Subject: [elpa] externals/denote 24371b4c86 129/355: fix: Update the identifier regexp to recognize TOML identifier too
Date: Sun, 26 Jun 2022 23:58:12 -0400 (EDT)

branch: externals/denote
commit 24371b4c86e3bbd53cab205e3beb4063647ac844
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@gmail.com>

    fix: Update the identifier regexp to recognize TOML identifier too
    
    Fixes issue 10 over at the Github mirror:
    <https://github.com/protesilaos/denote/issues/10>.
    
    This regexp update now also matches the ID property. Refer issue 8 at
    the Github mirror: <https://github.com/protesilaos/denote/issues/8>.
---
 denote-link.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote-link.el b/denote-link.el
index 2d3d95fc69..ca0668b980 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -100,7 +100,7 @@ files."
 (defconst denote-link--title-regexp "^\\(#\\+\\)?\\(title:\\)[\s\t]+\\(.*\\)"
   "Regular expression for title key and value.")
 
-(defconst denote-link--identifier-regexp 
"^\\(#\\+\\)?\\(identifier:\\)[\s\t]+\\(.*\\)"
+(defconst denote-link--identifier-regexp 
"^.?.?\\b\\(identifier\\|ID\\)\\s-*[:=]\\s-*\"?\\([0-9T]+\\)"
   "Regular expression for filename key and value.")
 
 (defconst denote-link--link-format-org "[[file:%s][%s (%s)]]"



reply via email to

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