@plasoft/boletos 1.0.72 → 1.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.mjs CHANGED
@@ -101,7 +101,7 @@ function numberToReal(numero) {
101
101
  }
102
102
  function codigoBarra(codigo) {
103
103
  const formatter = new StringMask("00000.00000 00000.000000 00000.000000 0 000000000000000");
104
- return formatter.apply(codigo);
104
+ return formatter.apply(codigo.replace(/\D/g, ""));
105
105
  }
106
106
  var maskFormat_default = {
107
107
  numberToReal,