diff --git a/src/sas/system/config/config_meta.py b/src/sas/system/config/config_meta.py index c5fb60d444..76ccb719a8 100644 --- a/src/sas/system/config/config_meta.py +++ b/src/sas/system/config/config_meta.py @@ -152,9 +152,12 @@ def load_from_file_object(self, file): try: file_version = data["sasview_version"] - # Use the distutils strict version module regex to check if the version string is valid + # This is based on distutils strict version module regex to check if the version string is valid # ref: https://epydoc.sourceforge.net/stdlib/distutils.version.StrictVersion-class.html - matcher = re.compile(r'(?x)^(\d+)\.(\d+)(\.(\d+))?([ab](\d+))?$') + # + # We've decided not to be strict, so it has been modified to include rc and RC + # + matcher = re.compile(r'(?x)^(\d+)\.(\d+)(\.(\d+))?((a|b|rc|RC)(\d+))?$') if not matcher.match(file_version): raise Exception