inline utils

This commit is contained in:
counterweight 2025-03-13 11:16:58 +01:00
parent 161135e315
commit 0f7ec6f521
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +0,0 @@
function formatNumberWithSpaces(num) {
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
}

View file

@ -1,4 +1,8 @@
function offersPage() { function offersPage() {
function formatNumberWithSpaces(num) {
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
}
const buttonStartCreateOffer = document.getElementById( const buttonStartCreateOffer = document.getElementById(
'button-start-create-offer' 'button-start-create-offer'
); );