support setting decimal separator and digit grouping symbol

This commit is contained in:
MaysWind
2024-06-29 17:12:22 +08:00
parent d9c8142c51
commit 399413a270
51 changed files with 1280 additions and 582 deletions
+8
View File
@@ -109,6 +109,14 @@ export function getObjectOwnFieldCount(object) {
return count;
}
export function replaceAll(value, originalValue, targetValue) {
return value.replaceAll(new RegExp(originalValue, 'g'), targetValue);
}
export function removeAll(value, originalValue) {
return replaceAll(value, originalValue, '');
}
export function limitText(value, maxLength) {
let length = 0;