Escaping woes
This commit is contained in:
1 parent
abfffa3231
commit
0da47858fa
2 files changed
+2
-2
No files matched your search
@@ -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.
|
||||
"""
|
||||
|
||||
@@ -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<codeGM>[GM]\d+)(\\.(?P<subcode>\d+))?|(?P<codeT>T)\d+|(?P<codeF>F)\d+)")
|
||||
regex_command = re.compile(r"^\s*((?P<codeGM>[GM]\d+)(\.(?P<subcode>\d+))?|(?P<codeT>T)\d+|(?P<codeF>F)\d+)")
|
||||
"""Regex for a GCODE command."""
|
||||
|
||||
regex_float = re.compile(regex_float_pattern)
|
||||
|
||||
Reference in new issue
Block a user