Compare commits

...

2 Commits

Author SHA1 Message Date
SilenceLurker
67c9708d68 Merge branch 'Wx-2025:main' into main 2025-12-28 19:10:21 +08:00
b52738248d Update executor.js 2025-12-28 11:35:03 +08:00

View File

@@ -1,4 +1,3 @@
import { log } from './logger.js';
function insertRow(state, tableIndex, data) {
@@ -158,7 +157,10 @@ function parseValue(val) {
return JSON.parse(val);
} catch (e) {
try {
return JSON.parse(val.replace(/'/g, '"'));
let fixedVal = val.replace(/([{,]\s*)(\d+)(\s*:)/g, '$1"$2"$3');
fixedVal = fixedVal.replace(/'/g, '"');
return JSON.parse(fixedVal);
} catch (e2) {
return val;
}