mirror of
https://github.com/Unkn0wnCat/data-toolbox-site.git
synced 2025-04-28 17:46:21 +02:00
Fix formatting in numberbase tool
This commit is contained in:
parent
335d9c5b06
commit
ddd8cb0a82
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "kevins-data-toolbox",
|
||||
"version": "2.2.0",
|
||||
"version": "2.2.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@loadable/component": "^5.15.0",
|
||||
|
|
|
@ -71,8 +71,8 @@ const NumberBaseTool = () => {
|
|||
setNanState(false)
|
||||
|
||||
setDec(num.toString(10).replace(/\B(?=(\d{3})+(?!\d))/g, " "))
|
||||
setBin(num.toString(2).replace(/\B(?=(\d{4})+(?!\d))/g, " "))
|
||||
setOct(num.toString(8).replace(/\B(?=(\d{2})+(?!\d))/g, " "))
|
||||
setBin(num.toString(2).replace(/\d{4}(?=.)/g, '$& '))
|
||||
setOct(num.toString(8))
|
||||
setHex(num.toString(16))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue