From 2f8ca766c604ff69227bdc69d5c67fba38d01e3d Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Sun, 4 Jul 2021 11:00:02 +1000 Subject: [PATCH] Update regex --- bdfr/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdfr/connector.py b/bdfr/connector.py index d6d43dd..0e78c8c 100644 --- a/bdfr/connector.py +++ b/bdfr/connector.py @@ -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