From e7cfcf1af2a67564527597257eba753a43eb3473 Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 12 May 2024 14:26:33 -0700 Subject: Fix: parameter matcher --- src/defendpoint.lisp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/defendpoint.lisp b/src/defendpoint.lisp index ef5131b..df10967 100644 --- a/src/defendpoint.lisp +++ b/src/defendpoint.lisp @@ -13,14 +13,18 @@ PART is either (and (listp part) (or (and (= 2 (length part)) (do> - (key str) :match= part + (key regex) :match= part :when (keywordp key) - :when (stringp str))) + :when (or (stringp regex) + (and (symbolp regex) + (stringp (symbol-value regex)))))) (and (= 3 (length part)) (do> - (key str parser) :match= part + (key regex parser) :match= part :when (keywordp key) - :when (string str) + :when (or (stringp regex) + (and (symbolp regex) + (stringp (symbol-value regex)))) :when (symbolp parser) (fboundp parser))))))) -- cgit v1.2.3