diff --git a/stellarisdashboard/config.py b/stellarisdashboard/config.py index dd00342..e590970 100644 --- a/stellarisdashboard/config.py +++ b/stellarisdashboard/config.py @@ -96,7 +96,9 @@ class Config: save_name_filter: str = None read_only_every_nth_save: int = None - only_read_player_history = False + only_read_player_history: bool = None + + debug_mode: bool = False PATH_KEYS = { "base_output_path", diff --git a/stellarisdashboard/token_value_stream_re.py b/stellarisdashboard/token_value_stream_re.py index 40bfb3c..90b2465 100644 --- a/stellarisdashboard/token_value_stream_re.py +++ b/stellarisdashboard/token_value_stream_re.py @@ -1,13 +1,13 @@ import re -WHITESPACE = re.compile('[\t\n ]*') -EQ = re.compile('=') -BR_OPEN = re.compile('{') -BR_CLOSE = re.compile('}') -Q_STR = re.compile('"((\\\\\")|[^"])*"') -IDENTIFIER = re.compile('[0-9_]*[a-zA-Z_]+[a-zA-Z0-9_:]*') -FLOAT = re.compile('-?[0-9]+\.[0-9]*') -INT = re.compile('-?[0-9]+') +WHITESPACE = re.compile(r'[\t\n ]*') +EQ = re.compile(r'=') +BR_OPEN = re.compile(r'{') +BR_CLOSE = re.compile(r'}') +Q_STR = re.compile(r'"((\\")|[^"])*"') +IDENTIFIER = re.compile(r'[0-9_]*[a-zA-Z_]+[a-zA-Z0-9_:]*') +FLOAT = re.compile(r'-?[0-9]+\.[0-9]*') +INT = re.compile(r'-?[0-9]+') REG_EXES = [ BR_OPEN,