@dra2020/baseclient 1.0.139 → 1.0.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/baseclient.js +2 -3
- package/dist/baseclient.js.map +1 -1
- package/lib/detail/detail.ts +2 -3
- package/package.json +1 -1
package/lib/detail/detail.ts
CHANGED
|
@@ -24,9 +24,8 @@ function formatNumber(n: number, format: string): string
|
|
|
24
24
|
let parts = format.split('.');
|
|
25
25
|
let fmt = parts[0];
|
|
26
26
|
let precision = Number(parts[1] || '0');
|
|
27
|
-
n = Util.precisionRound(n, precision);
|
|
28
27
|
// Only have implementation for 'locale'
|
|
29
|
-
return n.toLocaleString();
|
|
28
|
+
return n.toLocaleString(undefined, { maximumFractionDigits: precision, minimumFractionDigits: precision } );
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
export interface DetailOptions
|
|
@@ -114,7 +113,7 @@ export interface DetailResult
|
|
|
114
113
|
v: string, // value
|
|
115
114
|
}
|
|
116
115
|
|
|
117
|
-
const reInvalidChars = /[
|
|
116
|
+
const reInvalidChars = /[\[\]\\]/;
|
|
118
117
|
const reExpr = /^=(.*)$/
|
|
119
118
|
|
|
120
119
|
export class FormatDetail
|