diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-02-18 20:06:57 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-02-23 11:46:57 +0000 |
commit | d488d6392a9686ef1b27019c573dc422a525b9ee (patch) | |
tree | df775e421741d8d4f099f5da721bcabae57c615d /ui/gtk/filter_autocomplete.c | |
parent | 306c819e49664e689722fdb5b596765903ffbc48 (diff) |
ssl-utils: refactor keyfile matching
Merge the three separate regexes into a single pattern and use named
groups. This avoid magic numbers (group positions) and removes a
possible error source when the ht array gets out of sync with the
patterns array (by human error).
This is supposed to be more readable and allows for easier extension of
the regex.
Change-Id: I816525f358cdb89ff9f8ebc1211139b1f8c23840
Reviewed-on: https://code.wireshark.org/review/7245
Reviewed-by: Evan Huus <eapache@gmail.com>
Petri-Dish: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/gtk/filter_autocomplete.c')
0 files changed, 0 insertions, 0 deletions