feat: add Auto delimiter option to From Decimal operation
This commit is contained in:
parent
4b0659d84d
commit
7d971234ef
@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
import Utils from "../Utils.mjs";
|
||||
import {DELIM_OPTIONS} from "./Delim.mjs";
|
||||
|
||||
|
||||
/**
|
||||
@ -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,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
|
||||
@ -28,7 +27,7 @@ class FromDecimal extends Operation {
|
||||
{
|
||||
"name": "Delimiter",
|
||||
"type": "option",
|
||||
"value": DELIM_OPTIONS
|
||||
"value": FROM_DECIMAL_DELIM_OPTIONS
|
||||
},
|
||||
{
|
||||
"name": "Support signed values",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user