summaryrefslogtreecommitdiff
path: root/src/migration-scripts/dns-dynamic/2-to-3
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-26 12:33:30 +0100
committerGitHub <noreply@github.com>2023-12-26 12:33:30 +0100
commit3b6f2e35db7955cb212b01bb412070e0861bab7a (patch)
tree242564eb2b7f5439dd5eb2805358b85773ae9314 /src/migration-scripts/dns-dynamic/2-to-3
parente524b053e7057294051a0daddb19427839f38414 (diff)
parentc8bcc4ad2a82ec95f2f4005fd89ba94264040a68 (diff)
downloadvyos-1x-3b6f2e35db7955cb212b01bb412070e0861bab7a.tar.gz
vyos-1x-3b6f2e35db7955cb212b01bb412070e0861bab7a.zip
Merge pull request #2686 from indrajitr/ddclient-update-20231224-01
ddclient: T5144: Migrate web-options url to stricter format
Diffstat (limited to 'src/migration-scripts/dns-dynamic/2-to-3')
-rwxr-xr-xsrc/migration-scripts/dns-dynamic/2-to-32
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/dns-dynamic/2-to-3 b/src/migration-scripts/dns-dynamic/2-to-3
index e5910f7b4..4e0aa37d5 100755
--- a/src/migration-scripts/dns-dynamic/2-to-3
+++ b/src/migration-scripts/dns-dynamic/2-to-3
@@ -37,7 +37,7 @@ def normalize_name(name):
# Normalize unicode characters to ASCII (NFKD)
# Replace all separators with hypens, strip leading and trailing hyphens
name = normalize('NFKD', name).encode('ascii', 'ignore').decode()
- name = re.sub(r'(\s|\W)+', '-', name).strip('-')
+ name = re.sub(r'(\s|_|\W)+', '-', name).strip('-')
return name