REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 946 B
Close
/home/byroehnu/easepaybiz.easetack.com/node_modules/react-currency-input-field/src/components/utils/fixedDecimalValue.ts
Text
Base64
export const fixedDecimalValue = ( value: string, decimalSeparator: string, fixedDecimalLength?: number ): string => { if (fixedDecimalLength !== undefined && value.length > 1) { if (fixedDecimalLength === 0) { return value.replace(decimalSeparator, ''); } if (value.includes(decimalSeparator)) { const [int, decimals] = value.split(decimalSeparator); if (decimals.length === fixedDecimalLength) { return value; } if (decimals.length > fixedDecimalLength) { return `${int}${decimalSeparator}${decimals.slice(0, fixedDecimalLength)}`; } } const reg = value.length > fixedDecimalLength ? new RegExp(`(\\d+)(\\d{${fixedDecimalLength}})`) : new RegExp(`(\\d)(\\d+)`); const match = value.match(reg); if (match) { const [, int, decimals] = match; return `${int}${decimalSeparator}${decimals}`; } } return value; };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__tests__
DIR
-
drwxr-xr-x
2026-03-14 01:49:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.htaccess
127 B
lr--r--r--
2026-03-14 01:49:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
addSeparators.ts
195 B
lrw-r--r--
2026-03-05 00:20:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cleanValue.ts
2.62 KB
lrw-r--r--
2026-03-05 00:20:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
escapeRegExp.ts
295 B
lrw-r--r--
2026-03-05 00:20:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fixedDecimalValue.ts
946 B
lrw-r--r--
2026-03-05 00:20:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
formatValue.ts
5.26 KB
lrw-r--r--
2026-03-05 00:20:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
getLocaleConfig.ts
1.25 KB
lrw-r--r--
2026-03-05 00:20:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
getSuffix.ts
475 B
lrw-r--r--
2026-03-05 00:20:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
258 B
lrw-r--r--
2026-03-05 00:20:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
isNumber.ts
84 B
lrw-r--r--
2026-03-05 00:20:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
padTrimValue.ts
718 B
lrw-r--r--
2026-03-05 00:20:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
parseAbbrValue.ts
1.15 KB
lrw-r--r--
2026-03-05 00:20:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
removeInvalidChars.ts
320 B
lrw-r--r--
2026-03-05 00:20:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
removeSeparators.ts
280 B
lrw-r--r--
2026-03-05 00:20:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
repositionCursor.ts
1.41 KB
lrw-r--r--
2026-03-05 00:20:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).