Skip to content

Commit 9beec4b

Browse files
committed
Replace s-replace-regexp with replace-regexp-in-string
- fixes #1636 - fixes #1605
1 parent e1ccc6f commit 9beec4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lsp-mode.el

+4-4
Original file line numberDiff line numberDiff line change
@@ -4436,10 +4436,10 @@ Also, additional data to attached to each candidate can be passed via PLIST."
44364436
(defun lsp--to-yasnippet-snippet (text)
44374437
"Convert LSP snippet TEXT to yasnippet snippet."
44384438
;; LSP snippet doesn't escape "{", but yasnippet requires escaping it.
4439-
(s-replace-regexp (rx (or bos (not (any "$" "\\"))) (group "{"))
4440-
(rx "\\" (backref 1))
4441-
text
4442-
nil nil 1))
4439+
(replace-regexp-in-string (rx (or bos (not (any "$" "\\"))) (group "{"))
4440+
(rx "\\" (backref 1))
4441+
text
4442+
nil nil 1))
44434443

44444444
(defun lsp--sort-completions (completions)
44454445
"Sort COMPLETIONS."

0 commit comments

Comments
 (0)