feat: add Auto delimiter option to From Decimal operation

This commit is contained in:
min23asdw 2026-03-23 16:17:36 +07:00
parent 4b0659d84d
commit 7d971234ef
2 changed files with 9 additions and 3 deletions

View File

@ -7,6 +7,7 @@
*/ */
import Utils from "../Utils.mjs"; import Utils from "../Utils.mjs";
import {DELIM_OPTIONS} from "./Delim.mjs";
/** /**
@ -35,3 +36,9 @@ export function fromDecimal(data, delim="Auto") {
} }
return output; return output;
} }
/**
* From Decimal delimiters.
*/
export const FROM_DECIMAL_DELIM_OPTIONS = [...DELIM_OPTIONS, "Auto"];

View File

@ -5,8 +5,7 @@
*/ */
import Operation from "../Operation.mjs"; import Operation from "../Operation.mjs";
import {DELIM_OPTIONS} from "../lib/Delim.mjs"; import {fromDecimal, FROM_DECIMAL_DELIM_OPTIONS} from "../lib/Decimal.mjs";
import {fromDecimal} from "../lib/Decimal.mjs";
/** /**
* From Decimal operation * From Decimal operation
@ -28,7 +27,7 @@ class FromDecimal extends Operation {
{ {
"name": "Delimiter", "name": "Delimiter",
"type": "option", "type": "option",
"value": DELIM_OPTIONS "value": FROM_DECIMAL_DELIM_OPTIONS
}, },
{ {
"name": "Support signed values", "name": "Support signed values",