From 6245655eba2b33a49eb5224c944106fb9ef373fd Mon Sep 17 00:00:00 2001 From: Craig Young <7906955+cy1337@users.noreply.github.com> Date: Tue, 3 Mar 2020 09:09:11 -0500 Subject: [PATCH] Version regex update Removing extraneous \ from pattern (. does not need escaping in a character class) and trimming the space so that this works on a 9.0.29 which responds with: ```

Apache Tomcat/9.0.29

``` --- tomcat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomcat.py b/tomcat.py index 38f03c7..802e6a5 100755 --- a/tomcat.py +++ b/tomcat.py @@ -223,7 +223,7 @@ def get_error_page(self): def get_version(self): hdrs, data = self.get_error_page() for d in data: - s = re.findall('(Apache Tomcat/[0-9\.]+) ', d.data) + s = re.findall('(Apache Tomcat/[0-9.]+)', d.data) if len(s) > 0: return s[0]