Skip to content

Commit

Permalink
fix(libsinsp): use correct regex for hex numbers
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Oct 23, 2024
1 parent d8d345a commit 6a25453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/filter/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:]=,]+)"

Expand Down

0 comments on commit 6a25453

Please sign in to comment.