remove extra quotes on digitalocean DNS TXT records
This commit is contained in:
@@ -92,6 +92,8 @@ async function upsert(domainObject, location, type, values) {
|
||||
if (type === 'MX') {
|
||||
priority = value.split(' ')[0];
|
||||
value = value.split(' ')[1];
|
||||
} else if (type === 'TXT') {
|
||||
value = value.replace(/^"(.*)"$/, '$1'); // strip any double quotes
|
||||
}
|
||||
|
||||
const data = {
|
||||
|
||||
Reference in New Issue
Block a user