UNPKG
react-rut
Version:
latest (1.0.0)
1.0.0
Chilean RUT for React
github.com/afex-connect/react-rut
afex-connect/react-rut
react-rut
/
dist
/
utils
/
unformat.js
10 lines
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
unformat
(
value
) {
if
(!value) {
return
''
; }
return
value.
replace
(
/^0+|[^0-9kK]+/g
,
''
).
toUpperCase
(); }
exports
.
default
= unformat;
//# sourceMappingURL=unformat.js.map