Skip to content
Open
Prev Previous commit
Next Next commit
feat: add Auto delimiter option to From Decimal operation
  • Loading branch information
min23asdw committed Mar 23, 2026
commit 7d971234efae1fa36dcac92cfe1b3b69724a63a9
7 changes: 7 additions & 0 deletions src/core/lib/Decimal.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

import Utils from "../Utils.mjs";
import {DELIM_OPTIONS} from "./Delim.mjs";


/**
Expand Down Expand Up @@ -35,3 +36,9 @@ export function fromDecimal(data, delim="Auto") {
}
return output;
}


/**
* From Decimal delimiters.
*/
export const FROM_DECIMAL_DELIM_OPTIONS = [...DELIM_OPTIONS, "Auto"];
5 changes: 2 additions & 3 deletions src/core/operations/FromDecimal.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
*/

import Operation from "../Operation.mjs";
import {DELIM_OPTIONS} from "../lib/Delim.mjs";
import {fromDecimal} from "../lib/Decimal.mjs";
import {fromDecimal, FROM_DECIMAL_DELIM_OPTIONS} from "../lib/Decimal.mjs";

/**
* From Decimal operation
Expand All @@ -28,7 +27,7 @@ class FromDecimal extends Operation {
{
"name": "Delimiter",
"type": "option",
"value": DELIM_OPTIONS
"value": FROM_DECIMAL_DELIM_OPTIONS
},
{
"name": "Support signed values",
Expand Down