From: Pieter Lexis Date: Fri, 27 Jan 2012 16:10:11 +0000 (+0100) Subject: Fixed tlsa name regex (thanks JP Mens) X-Git-Url: https://git.svenne.dk/?a=commitdiff_plain;h=d02f338d05585ec9f3b15ceb1b6e8833908c05ff;p=public%2Fdnssec-swede-utility.git Fixed tlsa name regex (thanks JP Mens) * The regex didn't allow the use of dashes(-) in the hostname part of the name string. --- diff --git a/swede b/swede index 861211e..ee9d768 100755 --- a/swede +++ b/swede @@ -295,7 +295,7 @@ class TLSARecord: def isNameValid(self): """Check if the name if in the correct format""" - if not re.match('^(_\d{1,5}|\*)\._(tcp|udp|sctp)\.([a-z0-9]*\.){2,}$', self.name): + if not re.match('^(_\d{1,5}|\*)\._(tcp|udp|sctp)\.([-a-z0-9]*\.){2,}$', self.name): return False return True