diff options
| author | Ben Fuhrmannek | 2022-02-05 12:22:13 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2022-02-05 12:22:13 +0100 |
| commit | 323f818a6ce33d021bc0a6d34064598917e68c91 (patch) | |
| tree | 474200051e6e908489ea8d23a58fc60464ea9492 /src/sp_var_parser.c | |
| parent | dece0e45b7f66cc51bcbe590240eab3f82da900c (diff) | |
introduced sp_regexp / store original regex
Diffstat (limited to 'src/sp_var_parser.c')
| -rw-r--r-- | src/sp_var_parser.c | 4 |
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; |
