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 parseTxtRecordData = (value) => {
|
||||||
const result = {};
|
const result = {};
|
||||||
for (const part of value.split(';')) {
|
for (const part of value.split(';')) {
|
||||||
const [key, value] = part.split('=');
|
const [key, ...value] = part.split('=');
|
||||||
if (key && value) {
|
if (key && value.length > 0) {
|
||||||
result[key] = value;
|
result[key] = value.join('=');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue