Improve configuration metadata validation logic

This commit is contained in:
codeking 2025-04-18 15:48:13 +02:00
parent 8baf0cf4da
commit b80416515f

View file

@ -121,4 +121,4 @@ class SessionProfile(BaseProfile):
match = re.match(r'^# {} = (.*)$'.format(re.escape(key)), line) match = re.match(r'^# {} = (.*)$'.format(re.escape(key)), line)
if match: if match:
return re.sub(r'[^a-zA-Z0-9+\- /]', '', match.group(1).strip()) return re.sub(r'[^a-zA-Z0-9+\-_ /]', '', match.group(1).strip())