Support TXT values with the character "=" in it
This commit is contained in:
parent
23d3f063d4
commit
dfc18f2d91
1 changed files with 3 additions and 3 deletions
|
|
@ -46,9 +46,9 @@ export async function ensureDir(dir) {
|
|||
const parseTxtRecordData = (value) => {
|
||||
const result = {};
|
||||
for (const part of value.split(';')) {
|
||||
const [key, value] = part.split('=');
|
||||
if (key && value) {
|
||||
result[key] = value;
|
||||
const [key, ...value] = part.split('=');
|
||||
if (key && value.length > 0) {
|
||||
result[key] = value.join('=');
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue