diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-12-20 21:01:29 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-12-20 20:26:20 +0000 |
commit | 8fe68db9440d2c93f49282cbb4ffa154fc36782d (patch) | |
tree | 4e9278640c49a39cb9be97d8233575d6101ab25f /ui/gtk/filter_dlg.c | |
parent | c067ba606eb88c4493353375d2198b9bc8b648a9 (diff) |
Add COL_CUSTOM_PRIME_REGEX
Use this as a common regex to split multi-field custom columns.
Change-Id: I40f76743284c5981c95d2e47d6d1d2a7f357d2ea
Reviewed-on: https://code.wireshark.org/review/12753
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/gtk/filter_dlg.c')
-rw-r--r-- | ui/gtk/filter_dlg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gtk/filter_dlg.c b/ui/gtk/filter_dlg.c index 941da3aec6..36f27b240f 100644 --- a/ui/gtk/filter_dlg.c +++ b/ui/gtk/filter_dlg.c @@ -28,6 +28,7 @@ #include <wsutil/filesystem.h> #include <epan/prefs.h> +#include <epan/column-info.h> #include "ui/filters.h" #include "ui/simple_dialog.h" @@ -1349,7 +1350,7 @@ filter_te_syntax_check_cb(GtkWidget *w, gpointer user_data _U_) gchar **fields; guint i_field = 0; - fields = g_regex_split_simple(" *([^ \\|]+) *(?:(?:\\|\\|)|(?:or))? *", + fields = g_regex_split_simple(COL_CUSTOM_PRIME_REGEX, strval, G_REGEX_ANCHORED, G_REGEX_MATCH_ANCHORED); for (i_field =0; i_field < g_strv_length(fields); i_field += 1) { |