only remove double escaped semicolons
check code / check-code (push) Failing after 33s
Details
check code / check-code (push) Failing after 33s
Details
Signed-off-by: Ivan Schaller <ivan@schaller.sh>
This commit is contained in:
parent
78448d2bde
commit
1cb141c2be
|
@ -91,12 +91,12 @@ class NetBoxDNSProvider(octodns.provider.base.BaseProvider):
|
|||
return absolute_value
|
||||
|
||||
def _escape_semicolon(self, value: str) -> str:
|
||||
fixed = value.replace(";", "\\;")
|
||||
fixed = value.replace(";", r"\;")
|
||||
self.log.debug(f"in='{value}', escaped='{fixed}'")
|
||||
return fixed
|
||||
|
||||
def _unescape_semicolon(self, value: str) -> str:
|
||||
fixed = value.replace("\\\\", "\\").replace("\\;", ";")
|
||||
fixed = value.replace(r"\\;", ";")
|
||||
self.log.debug(f"in='{value}', unescaped='{fixed}'")
|
||||
return fixed
|
||||
|
||||
|
|
Loading…
Reference in New Issue