summaryrefslogtreecommitdiff
path: root/src/sp_var_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_var_parser.c')
-rw-r--r--src/sp_var_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_var_parser.c b/src/sp_var_parser.c
index cc75d83..2639991 100644
--- a/src/sp_var_parser.c
+++ b/src/sp_var_parser.c
@@ -33,8 +33,8 @@ static bool is_var_name_valid(const char *const name) {
33 if (NULL == regexp_var || NULL == regexp_const) { 33 if (NULL == regexp_var || NULL == regexp_const) {
34 return false; // LCOV_EXCL_LINE 34 return false; // LCOV_EXCL_LINE
35 } 35 }
36 if ((false == sp_is_regexp_matching(regexp_var, name)) && 36 if ((false == sp_is_regexp_matching_len(regexp_var, VAR_AND_LEN(name))) &&
37 (false == sp_is_regexp_matching(regexp_const, name))) { 37 (false == sp_is_regexp_matching_len(regexp_const, VAR_AND_LEN(name)))) {
38 return false; 38 return false;
39 } 39 }
40 return true; 40 return true;