From 2893ea4e4c8b613aad3cf9c789c73a6a6674435c Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 6 Nov 2021 19:37:46 +0100 Subject: [PATCH] Make substitute-command-keys regexp tests more strict * test/lisp/help-tests.el (with-substitute-command-keys-test): Make regexp tests more strict. --- test/lisp/help-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lisp/help-tests.el b/test/lisp/help-tests.el index a2573c9c8b3..a331ec440a8 100644 --- a/test/lisp/help-tests.el +++ b/test/lisp/help-tests.el @@ -65,7 +65,7 @@ result)))) (test-re (lambda (orig regexp) - (should (string-match (concat "^" regexp "$") + (should (string-match (concat "\\`" regexp "\\'") (substitute-command-keys orig)))))) ,@body)) -- 2.39.5