]> git.mxchange.org Git - fba.git/blobdiff - fba/helpers/tidyup.py
Continued:
[fba.git] / fba / helpers / tidyup.py
index 68abb8dffea12436d89f7399a680455342876869..acd8bc655475bfc6cd4b472a0b0b1f53cd6edd54 100644 (file)
@@ -40,7 +40,7 @@ def domain(string: str) -> str:
         raise ValueError("Parameter string is empty")
 
     # All lower-case and strip spaces out + last dot
-    string = string.lower().strip().rstrip(".")
+    string = string.lower().strip().rstrip(".").replace("..", ".")
     logger.debug("string='%s' - #1", string)
 
     # No port number