Skip to content

Commit cb32710

Browse files
committed
Replace s-match
As per clojure-emacs#293 replacing s.el functions with the ones that come as default with Emacs
1 parent d3d3223 commit cb32710

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clj-refactor.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -3362,7 +3362,8 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-create-fn-from-e
33623362
(list "first" "second" "last" "fnext" "nth" "rand-nth"))
33633363

33643364
(defun cljr--strip-keyword-ns (s)
3365-
(car (s-match "[^/]+$" s)))
3365+
(when (string-match "[^/]+$" s)
3366+
(substring s (car (match-data)) (car (cdr (match-data))))))
33663367

33673368
(defun cljr--guess-param-name (form)
33683369
(let* ((prepped-form (cljr--strip-off-semantic-noops

0 commit comments

Comments
 (0)