diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2018-11-13 12:40:45 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-11-13 14:51:32 +0000 |
commit | b2c244e92d625d1e312b3b205b87a74850cc5f1f (patch) | |
tree | 3f1384555e9d4fd1e37abe9efbc7ad68cd973637 /extcap.c | |
parent | d06e04106e5eb71411757b87c85aa34384d7fc80 (diff) |
extcap: Allow ASCII '0' in preference name
Update the regex to also allow '0' in the preference name.
Change-Id: I881079b579b9193dd31dda2150d9a50c000c0dd3
Reviewed-on: https://code.wireshark.org/review/30602
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -698,7 +698,7 @@ extcap_pref_for_argument(const gchar *ifname, struct _extcap_arg *arg) struct preference *pref = NULL; GRegex *regex_name = g_regex_new("[-]+", (GRegexCompileFlags) 0, (GRegexMatchFlags) 0, NULL); - GRegex *regex_ifname = g_regex_new("(?![a-zA-Z1-9_]).", (GRegexCompileFlags) 0, (GRegexMatchFlags) 0, NULL); + GRegex *regex_ifname = g_regex_new("(?![a-zA-Z0-9_]).", (GRegexCompileFlags) 0, (GRegexMatchFlags) 0, NULL); if (regex_name && regex_ifname) { if (prefs_find_module("extcap")) |