Browse Source

update format regex replace . in price

pull/1/head
bnu 2 years ago
parent
commit
ff13a8be40
  1. 2
      src/function/function.js

2
src/function/function.js

@ -235,7 +235,7 @@ function formatRibuanInput(angka, prefix)
/* Fungsi replace titik, untuk save ke DB*/
function formatReplaceTitikRibuan(param){
let myStr = param;
let newStr = myStr.replace('.', '');
let newStr = myStr.replace(/\./g, '');
return newStr;
}

Loading…
Cancel
Save