]> git.eshelyaron.com Git - emacs.git/commitdiff
Make substitute-command-keys regexp tests more strict
authorStefan Kangas <stefan@marxist.se>
Sat, 6 Nov 2021 18:37:46 +0000 (19:37 +0100)
committerStefan Kangas <stefan@marxist.se>
Sat, 6 Nov 2021 18:39:46 +0000 (19:39 +0100)
* test/lisp/help-tests.el (with-substitute-command-keys-test): Make
regexp tests more strict.

test/lisp/help-tests.el

index a2573c9c8b3a5c835639531eab7b14e0e892e1bb..a331ec440a8532ad482cf8a6c368dbe2e5e64d85 100644 (file)
@@ -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))