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
record.isValid(raiseException=True)
except RecordValidityException, e:
print sys.stderr, 'Error: %s' % str(e)
- sys.exit(1)
+ continue
else:
if not args.quiet:
print 'This record is valid (well-formed).'