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

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

[nongnu] elpa/annotate 50ba1d719c 143/372: - used a better regex when ch


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 50ba1d719c 143/372: - used a better regex when checking if a file is in info format.
Date: Fri, 4 Feb 2022 16:58:35 -0500 (EST)

branch: elpa/annotate
commit 50ba1d719cadd9e2fe90ca2b536b57ade0b22826
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>

    - used a better regex when checking if a file is in info format.
---
 annotate.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/annotate.el b/annotate.el
index 0e9fa9b0bf..e4b29cea8b 100644
--- a/annotate.el
+++ b/annotate.el
@@ -1243,7 +1243,8 @@ sophisticated way than plain text"
                               (t
                                (let* ((file-contents     (file-contents))
                                       (has-info-p        (string-match "info" 
filename))
-                                      (has-separator-p   (string-match "" 
file-contents))
+                                      (has-separator-p   (string-match "\\(
\\)?\\(\\)?$"
+                                                                       
file-contents))
                                       (has-node-p        (string-match "Node:" 
file-contents)))
                                  (if (or (annotate-info-root-dir-p filename)
                                          (and has-separator-p



reply via email to

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