From: Jim Porter Date: Mon, 19 Jun 2023 20:45:37 +0000 (-0700) Subject: ; Improve 'rx' form from edb0862f5e69 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ef2a9b9779f87438958830747e97b0a37804a3d6;p=emacs.git ; Improve 'rx' form from edb0862f5e69 Thanks to Michael Albinus for the suggestion. * test/lisp/eshell/esh-util-tests.el (esh-util-test/eshell-stringify/list): Use 'any' instead of 'or' in 'rx' form. --- diff --git a/test/lisp/eshell/esh-util-tests.el b/test/lisp/eshell/esh-util-tests.el index 52b42fe915c..8585677e14e 100644 --- a/test/lisp/eshell/esh-util-tests.el +++ b/test/lisp/eshell/esh-util-tests.el @@ -52,7 +52,7 @@ ;; no leading/trailing whitespace. (should (equal (eshell-stringify '(1 2 3)) "(1 2 3)")) (should (equal (replace-regexp-in-string - (rx (+ (or space "\n"))) " " + (rx (+ (any space "\n"))) " " (eshell-stringify '((1 2) (3 . 4)))) "((1 2) (3 . 4))")))