diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-24 13:26:38 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-24 13:27:38 +0200 |
commit | 486ff859ced13c2454e7d12788069e5db30b618d (patch) | |
tree | 8f15bd33665a8678854ba530c36bf1b507425afc /eval.c | |
parent | fc7ef102aa147680e2c82b6f2be338ad51ce0842 (diff) |
syntax: add regular expression support
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -24,6 +24,7 @@ #include <errno.h> #include <stdlib.h> #include <stdarg.h> +#include <regex.h> char exception_tag_space[sizeof(struct ut_op) + sizeof(struct ut_op *)]; static struct ut_op *exception_tag = (struct ut_op *)exception_tag_space; @@ -1549,6 +1550,7 @@ ut_execute_op(struct ut_state *state, uint32_t off) case T_BOOL: case T_STRING: case T_NULL: + case T_REGEXP: return json_object_get(op->val); case T_THIS: |