1
0
Fork 0
mirror of synced 2024-05-14 17:22:48 +12:00

Update regex

This commit is contained in:
Serene-Arc 2021-07-04 11:00:02 +10:00
parent d03a5e556e
commit 2f8ca766c6

View file

@ -94,7 +94,7 @@ class RedditConnector(metaclass=ABCMeta):
logger.debug(f'Setting maximum download wait time to {self.args.max_wait_time} seconds')
if self.args.time_format is None:
option = self.cfg_parser.get('DEFAULT', 'time_format', fallback='ISO')
if re.match(r'^[ \'\"]*$', option):
if re.match(r'^[\s\'\"]*$', option):
option = 'ISO'
logger.debug(f'Setting datetime format string to {option}')
self.args.time_format = option