[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 07303fd901 2/5: Fix regexp in denote--file-has-i
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 07303fd901 2/5: Fix regexp in denote--file-has-identifier-p |
Date: |
Mon, 15 Aug 2022 06:57:29 -0400 (EDT) |
branch: externals/denote
commit 07303fd90101714111b89a79f064da8a8c184064
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Fix regexp in denote--file-has-identifier-p
---
denote.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/denote.el b/denote.el
index 08af56fe37..1193a0e980 100644
--- a/denote.el
+++ b/denote.el
@@ -442,7 +442,7 @@ trailing hyphen."
(defun denote--file-has-identifier-p (file)
"Return non-nil if FILE has a Denote identifier."
(let ((file-name (file-name-nondirectory file)))
- (string-match-p denote--id-regexp (format "\\`%s" file-name))))
+ (string-match-p (concat "\\`" denote--id-regexp) file-name)))
(defun denote--file-supported-extension-p (file)
"Return non-nil if FILE has supported extension."