X-Git-Url: https://git.ao2.it/SaveMySugar/python3-savemysugar.git/blobdiff_plain/475721658d2f3e83eb323e19fde9570e9ebdbd45..cb1b733eef72caa3bb4d11364662fb0a068e49e7:/src/savemysugar/MorseTranslator.py diff --git a/src/savemysugar/MorseTranslator.py b/src/savemysugar/MorseTranslator.py index 630aba7..d52902d 100755 --- a/src/savemysugar/MorseTranslator.py +++ b/src/savemysugar/MorseTranslator.py @@ -161,7 +161,6 @@ class MorseTranslator(object): def sanitize_morse(self, morse): sanitized = re.sub("_", "-", morse) sanitized = re.sub(r"[^\-\.\/]", " ", sanitized) - sanitized = re.sub(r"\|", "/", sanitized) sanitized = re.sub(r"\s+", " ", sanitized) sanitized = re.sub(r"( ?/ ?)+", " / ", sanitized) sanitized = re.sub(r"^[ /]+", "", sanitized)