diff --git a/src/octoprint/filemanager/storage.py b/src/octoprint/filemanager/storage.py index 196e9b7ed..5cd503e27 100644 --- a/src/octoprint/filemanager/storage.py +++ b/src/octoprint/filemanager/storage.py @@ -964,7 +964,7 @@ class LocalFileStorage(StorageInterface): def sanitize_name(self, name): """ - Raises a :class:`ValueError` for a ``name`` containing ``/`` or ``\``. Otherwise + Raises a :class:`ValueError` for a ``name`` containing ``/`` or ``\\``. Otherwise slugifies the given ``name`` by converting it to ASCII, leaving ``-``, ``_``, ``.``, ``(``, and ``)`` as is. """ diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index b778cc619..f95c67156 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -56,7 +56,7 @@ regex_float_pattern = r"[-+]?[0-9]*\.?[0-9]+" regex_positive_float_pattern = r"[+]?[0-9]*\.?[0-9]+" regex_int_pattern = r"\d+" -regex_command = re.compile(r"^\s*((?P[GM]\d+)(\\.(?P\d+))?|(?PT)\d+|(?PF)\d+)") +regex_command = re.compile(r"^\s*((?P[GM]\d+)(\.(?P\d+))?|(?PT)\d+|(?PF)\d+)") """Regex for a GCODE command.""" regex_float = re.compile(regex_float_pattern)