From: Mattias EngdegÄrd Date: Fri, 1 Jul 2022 09:00:41 +0000 (+0200) Subject: ; * test/lisp/erc/erc-networks-tests.el: escape `*`s in regexp X-Git-Tag: emacs-29.0.90~1447^2~1306 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bffca6070f4614a5075100082ce5a3c8bba6df77;p=emacs.git ; * test/lisp/erc/erc-networks-tests.el: escape `*`s in regexp --- diff --git a/test/lisp/erc/erc-networks-tests.el b/test/lisp/erc/erc-networks-tests.el index 417ee94cf0c..66a334b7091 100644 --- a/test/lisp/erc/erc-networks-tests.el +++ b/test/lisp/erc/erc-networks-tests.el @@ -1187,7 +1187,7 @@ nil (make-erc-response))))) (should (string-match-p "failed" (cadr err))) (should (eq (car err) 'error))) - (should (string-match-p "*** Failed" (car (pop calls))))))) + (should (string-match-p (rx "*** Failed") (car (pop calls))))))) (erc-networks-tests--clean-bufs)))