Fix formatting in numberbase tool

This commit is contained in:
Kevin Kandlbinder 2022-05-03 16:20:35 +02:00
parent 335d9c5b06
commit ddd8cb0a82
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "kevins-data-toolbox",
"version": "2.2.0",
"version": "2.2.1",
"private": true,
"dependencies": {
"@loadable/component": "^5.15.0",

View file

@ -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))