Comparing version 1.3.1 to 1.3.2
@@ -304,3 +304,3 @@ "use strict"; | ||
var shift = rawValueArr.shift(); | ||
var rawValueChar = void 0, isNew = void 0; | ||
var rawValueChar = '', isNew = false; | ||
if (shift) { | ||
@@ -307,0 +307,0 @@ rawValueChar = shift.char; |
@@ -65,5 +65,9 @@ "use strict"; | ||
function getAllDigits(input) { | ||
return input.match(/\d/g).join(""); | ||
var match = input.match(/\d/g); | ||
if (match) { | ||
return match.join(""); | ||
} | ||
return; | ||
} | ||
exports.getAllDigits = getAllDigits; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "js-brasil", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Javascript Utils para Brasil (cpf, cnpj...)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -358,3 +358,3 @@ import { isArray, processCaretTraps } from './utils'; | ||
const shift = rawValueArr.shift(); | ||
let rawValueChar: string, isNew: boolean; | ||
let rawValueChar: string = '', isNew: boolean = false; | ||
if (shift) { | ||
@@ -361,0 +361,0 @@ rawValueChar = shift.char; |
@@ -68,3 +68,7 @@ export function isPresent(obj: any): boolean { | ||
export function getAllDigits(input: string) { | ||
return input.match(/\d/g).join(""); | ||
const match = input.match(/\d/g); | ||
if(match){ | ||
return match.join(""); | ||
} | ||
return; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
849458
14299