]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't use `string-search` in soap-client (bug#53744)
authorMattias Engdegård <mattiase@acm.org>
Thu, 3 Feb 2022 11:15:06 +0000 (12:15 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 3 Feb 2022 11:17:23 +0000 (12:17 +0100)
* lisp/net/soap-client.el (soap-decode-xs-complex-type):
Since soap-client is a core ELPA package and may be used with
Emacs versions older than 28, it cannot use `string-search`;
revert to `string-match`.

lisp/net/soap-client.el

index d2092633d89d713196128fa2a976a1f04f4d4bf0..718cff829cf657f9789717e484794dd3fd85e424 100644 (file)
@@ -1937,7 +1937,7 @@ This is a specialization of `soap-decode-type' for
                   (e-name (soap-xs-element-name element))
                   ;; Heuristic: guess if we need to decode using local
                   ;; namespaces.
-                  (use-fq-names (string-search ":" (symbol-name (car node))))
+                  (use-fq-names (string-match ":" (symbol-name (car node))))
                   (children (if e-name
                                 (if use-fq-names
                                     ;; Find relevant children