summaryrefslogtreecommitdiff
path: root/lisp/service/rest-service.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/service/rest-service.lisp')
-rw-r--r--lisp/service/rest-service.lisp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/service/rest-service.lisp b/lisp/service/rest-service.lisp
index a060863..7941630 100644
--- a/lisp/service/rest-service.lisp
+++ b/lisp/service/rest-service.lisp
@@ -34,3 +34,6 @@
(defun type-to-path (rest-type)
(concatenate 'string "/" (ppcre:regex-replace "-service" (string-downcase (type-of rest-type)) "/")))
+
+(defun split-text-input (input)
+ (remove-if (lambda (x) (org-ckons-core::null-or-empty-p x)) (cl-ppcre:split "[, ]" input)))