From 46394dff7f01e7fe4af06a6c344e151af5c3eef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Engdeg=C3=A5rd?= Date: Fri, 18 Dec 2020 14:35:09 +0100 Subject: Follow good regexp practice These were found by relint 1.19. * lisp/help-fns.el (help-fns--first-release): Use string-end instead of line-end when matching a file name. * lisp/org/ob-core.el (org-babel--string-to-number): Put hyphen last in alternative. * lisp/org/org-agenda.el (org-agenda-filter): Escape '+' correctly. --- lisp/help-fns.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/help-fns.el') diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 043c79f3900..20fe382cb09 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -653,7 +653,7 @@ FILE is the file where FUNCTION was probably defined." ;; of the *packages* in which the function is defined. (let* ((name (symbol-name symbol)) (re (concat "\\_<" (regexp-quote name) "\\_>")) - (news (directory-files data-directory t "\\`NEWS\\($\\|\\.\\)")) + (news (directory-files data-directory t "\\`NEWS\\(\\'\\|\\.\\)")) (place nil) (first nil)) (with-temp-buffer -- cgit v1.2.1