Support string/contains?

Simple wrapper around s-contains? but in the interest of avoiding a mixture of
s.el and stirng.el functions, the wrapper was defined.
This commit is contained in:
William Carroll 2020-01-18 22:37:27 +00:00
parent fa681ffdf0
commit 068a648736

View file

@ -22,6 +22,10 @@
(defconst string/test? t
"When t, run the tests.")
(defun string/contains? (c x)
"Return t if X is in C."
(s-contains? c x))
(defun string/hookify (x)
"Append \"-hook\" to X."
(s-append "-hook" x))