]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't use `string-replace` in soap-client (bug#53744)
authorMattias Engdegård <mattiase@acm.org>
Thu, 3 Feb 2022 11:25:53 +0000 (12:25 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 3 Feb 2022 11:25:53 +0000 (12:25 +0100)
* lisp/net/soap-client.el (soap-decode-xs-complex-type):
Cease using `string-replace` since it requires Emacs 28.

lisp/net/soap-client.el

index 718cff829cf657f9789717e484794dd3fd85e424..274e3b29e1caaef93edfc3b5eec862faccbdc643 100644 (file)
@@ -659,7 +659,7 @@ representing leap seconds."
             (if second
                 (if second-fraction
                     (let* ((second-fraction-significand
-                            (string-replace "." "" second-fraction))
+                            (replace-regexp-in-string "\\." "" second-fraction))
                            (hertz
                             (expt 10 (length second-fraction-significand)))
                            (ticks (+ (* hertz (string-to-number second))