From 323f818a6ce33d021bc0a6d34064598917e68c91 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Sat, 5 Feb 2022 12:22:13 +0100 Subject: introduced sp_regexp / store original regex --- src/sp_var_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_var_parser.c') 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) { if (NULL == regexp_var || NULL == regexp_const) { return false; // LCOV_EXCL_LINE } - if ((false == sp_is_regexp_matching(regexp_var, name)) && - (false == sp_is_regexp_matching(regexp_const, name))) { + if ((false == sp_is_regexp_matching_len(regexp_var, VAR_AND_LEN(name))) && + (false == sp_is_regexp_matching_len(regexp_const, VAR_AND_LEN(name)))) { return false; } return true; -- cgit v1.3