fix
This commit is contained in:
parent
e1be32333e
commit
91a770a2a0
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -84,8 +84,16 @@ export const devItem = (
|
||||||
value: null as any,
|
value: null as any,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else if (v.value === v.valueBuilt) {
|
} else {
|
||||||
result[k] = JSON.parse(v.value);
|
let vbuilt =
|
||||||
|
typeof v.valueBuilt === "string"
|
||||||
|
? (v.valueBuilt.trim() as string)
|
||||||
|
: "";
|
||||||
|
if (vbuilt.endsWith(";\n")) {
|
||||||
|
vbuilt = vbuilt.substring(0, vbuilt.length - ";\n".length);
|
||||||
|
}
|
||||||
|
if (vbuilt && vbuilt === v.value.trim()) {
|
||||||
|
result[k] = { mode: "string", value: JSON.parse(v.value) };
|
||||||
} else {
|
} else {
|
||||||
result[k] = {
|
result[k] = {
|
||||||
mode: "raw",
|
mode: "raw",
|
||||||
|
|
@ -94,6 +102,7 @@ export const devItem = (
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue