From d87c96b50545bb192fa2a517afce76383877cab5 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Wed, 23 Oct 2024 15:08:48 +0000 Subject: [PATCH] fix(libsinsp): use correct regex for hex numbers Signed-off-by: Roberto Scolaro --- userspace/libsinsp/filter/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libsinsp/filter/parser.cpp b/userspace/libsinsp/filter/parser.cpp index c8a9808c06..f03cffbe4f 100644 --- a/userspace/libsinsp/filter/parser.cpp +++ b/userspace/libsinsp/filter/parser.cpp @@ -31,7 +31,7 @@ limitations under the License. #define RGX_IDENTIFIER "([a-zA-Z]+[a-zA-Z0-9_]*)" #define RGX_FIELDNAME "([a-zA-Z]+[a-zA-Z0-9_]*(\\.[a-zA-Z]+[a-zA-Z0-9_]*)+)" #define RGX_FIELDARGBARESTR "([^][\"'[:space:]]+)" -#define RGX_HEXNUM "(0[xX][0-9a-zA-Z]+)" +#define RGX_HEXNUM "(0[xX][0-9a-fA-F]+)" #define RGX_NUMBER "([+\\-]?[0-9]+[\\.]?[0-9]*([eE][+\\-][0-9]+)?)" #define RGX_BARESTR "([^()\"'[:space:]=,]+)"