From ff99f32630478ab74d5d285d457a2df1c30d79be Mon Sep 17 00:00:00 2001 From: grainsoft Date: Wed, 3 Dec 2025 01:49:25 +0200 Subject: [PATCH] updates --- src/utils/AppendOptions.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/utils/AppendOptions.js b/src/utils/AppendOptions.js index 64a5cee..9e7974d 100644 --- a/src/utils/AppendOptions.js +++ b/src/utils/AppendOptions.js @@ -11,13 +11,15 @@ export class AppendOptions { } if (Ut.isStr(data)) { - data.replace(/"((?:\\.|[^"\\])*)"\s*:\s*"((?:\\.|[^"\\])*)"/g, (_, rawKey, rawVal) => target.append( - new Option( - JSON.parse(`"${rawVal}"`), - JSON.parse(`"${rawKey}"`) - ) - )); + + let options = ''; + data.replace(/"((?:\\.|[^"\\])*)"\s*:\s*"((?:\\.|[^"\\])*)"/g, + (_, k, v) => (options += ``, '') + ); + + target.innerHTML = options; + return; }