Skip to content

Commit

Permalink
$mol_number fix remove leading zeroes > 1 of main part
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 24, 2024
1 parent cbb919b commit 609818c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion number/number.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace $.$$ {
if (next === undefined) return current

const minus = next.includes('-')
next = next.replace(/,/g, '.').replace(/[^\d\.]/g, '')
next = next.replace(/,/g, '.').replace(/[^\d\.]/g, '').replace(/^0{2,}/, '0')

if ( minus ) next = '-' + next
const dot_pos = next.indexOf('.')
Expand Down

0 comments on commit 609818c

Please sign in to comment.