ssh.softwareversion: allow more characters

The keyword would not allow matching on "OpenSSH_5.5p1 Debian-6+squeeze5"
as the + and space characters were not allowed.

This patch adds support for them.
pull/1173/head
Victor Julien 11 years ago
parent a68e19d998
commit 59d12f334e

@ -61,7 +61,7 @@
/** /**
* \brief Regex for parsing the softwareversion string * \brief Regex for parsing the softwareversion string
*/ */
#define PARSE_REGEX "^\\s*\"?\\s*?([0-9a-zA-Z\\.\\-\\_]+)\\s*\"?\\s*$" #define PARSE_REGEX "^\\s*\"?\\s*?([0-9a-zA-Z\\.\\-\\_\\+\\s+]+)\\s*\"?\\s*$"
static pcre *parse_regex; static pcre *parse_regex;
static pcre_extra *parse_regex_study; static pcre_extra *parse_regex_study;

Loading…
Cancel
Save