mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
yasnippet.el (yas-escape-text): No error on nil text
This commit is contained in:
parent
42b0c269ca
commit
7661dc161d
@ -1916,7 +1916,8 @@ prefix argument."
|
||||
|
||||
(defun yas-escape-text (text)
|
||||
"Escape TEXT for snippet."
|
||||
(replace-regexp-in-string "[\\$]" "\\\\\\&" text))
|
||||
(when text
|
||||
(replace-regexp-in-string "[\\$]" "\\\\\\&" text)))
|
||||
|
||||
|
||||
;;; Snippet compilation function
|
||||
|
Loading…
x
Reference in New Issue
Block a user