From 82f96ed38013a5bb78815c61ddecb2a21fb273b9 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 6 Dec 2021 02:53:31 +0100 Subject: [PATCH] image-dired: Use string-match-p in one case * lisp/image-dired.el (image-dired-get-thumbnail-image): Use string-match-p. --- lisp/image-dired.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 0e597a515e7..0723804ff27 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el @@ -540,7 +540,7 @@ Create the thumbnail directory if it does not exist." (defun image-dired-get-thumbnail-image (file) "Return the image descriptor for a thumbnail of image file FILE." - (unless (string-match (image-file-name-regexp) file) + (unless (string-match-p (image-file-name-regexp) file) (error "%s is not a valid image file" file)) (let* ((thumb-file (image-dired-thumb-name file)) (thumb-attr (file-attributes thumb-file))) -- 2.39.2