summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
authorjvoisin2017-11-29 11:36:57 +0100
committerGitHub2017-11-29 11:36:57 +0100
commit10437787b0e8ede80976de4a1c22775fc1282f36 (patch)
tree1ab911ab000989b98449475eda655a797e278049 /src/sp_utils.c
parent8df77884f38e7a7334b56aafe2f441567f175af8 (diff)
Implement eval hooking
It's not possible to hook the `eval` builtin like other functions.
Diffstat (limited to 'src/sp_utils.c')
-rw-r--r--src/sp_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c
index 514fc10..28c8a8b 100644
--- a/src/sp_utils.c
+++ b/src/sp_utils.c
@@ -229,6 +229,8 @@ bool sp_match_value(const char* value, const char* to_match, const pcre* rx) {
229 } 229 }
230 } else if (rx) { 230 } else if (rx) {
231 return is_regexp_matching(rx, value); 231 return is_regexp_matching(rx, value);
232 } else {
233 return true;
232 } 234 }
233 return false; 235 return false;
234} 236}