diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2018-11-13 19:05:50 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2018-11-13 18:08:02 +0000 |
commit | d2227b768ed50b50a2325c8521de4605bb7be78f (patch) | |
tree | 8c79d1b0042a18955a19576e0fba09075f3c6671 /extcap.c | |
parent | 5d7199d8cedc31d5bb24d9f5c25aa9c4dab80669 (diff) |
extcap: Allow ASCII '0' in preference name
Update another regex to also allow '0' in the preference name.
Change-Id: I61e39a160d86195c989ab53623bc5887a10dcaad
Reviewed-on: https://code.wireshark.org/review/30606
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -743,7 +743,7 @@ static gboolean cb_preference(extcap_callback_info_t cb_info) GList *walker = arguments; 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) { while (walker != NULL) |