Common: Modify filename validation regex in CustomPBAConfigurationSchema to allow empty strings

This commit is contained in:
Shreya Malviya 2022-07-26 18:13:23 +05:30
parent 9c7b69dd7b
commit 8d84bdafe1
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ from .agent_sub_configurations import (
) )
from .utils import freeze_lists from .utils import freeze_lists
valid_windows_custom_pba_filename_regex = re.compile(r"^[^<>:\"\\\/|?*]+[^<>:\"\\\/|?* \.]$") valid_windows_custom_pba_filename_regex = re.compile(r"^[^<>:\"\\\/|?*]+[^<>:\"\\\/|?* \.]$|^$")
valid_linux_custom_pba_filename_regex = re.compile(r"^[^\\]+$") valid_linux_custom_pba_filename_regex = re.compile(r"^[^\\]+$|^$")
class CustomPBAConfigurationSchema(Schema): class CustomPBAConfigurationSchema(Schema):