Skip to content

Instantly share code, notes, and snippets.

View gustavo-iha's full-sized avatar

Gustavo Iha gustavo-iha

View GitHub Profile
@luizfelipeleite
luizfelipeleite / scripts.js
Last active May 29, 2024 13:50
Máscaras CPF, CNPJ, CEP e Telefone no Cleave
String.prototype.numbers = function () {
'use strict';
var result = '';
if (this.match(/(\d+)/g)) {
result = this.match(/(\d+)/g).join('');
}
return result;
};
( function( $ ) {