From 8331a573f1354940ec3744699dd88a3ca1323d7f Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Sun, 24 Dec 2023 23:42:51 -0600 Subject: ddclient: T5791: Adjust migration to normalize underscore in config names --- src/migration-scripts/dns-dynamic/2-to-3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3