1window.addEventListener('DOMContentLoaded', function (event) { 2 jQuery.validator.addMethod("matriz-ui-datatype-cpf", function(cpfString) { 3 if (cpfString.length > 0) { 4 var cpf = cpfString.replace(/\W/g,""); 5 try { 6 matriz.datatype.CPF(cpf); 7 } catch (error) { 8 return false; 9 } 10 } 11 return true; 12 }, "O CPF informado possui um valor inválido."); 13 14 jQuery.validator.addMethod("matriz-ui-datatype-cnpj", function(cnpjString) { 15 if (cnpjString.length > 0) { 16 var cnpj = cnpjString.replace(/\W/g,""); 17 try { 18 matriz.datatype.CNPJ(cnpj); 19 } catch (error) { 20 return false; 21 } 22 } 23 return true; 24 }, "O CNPJ informado possui um valor inválido."); 25 26 jQuery.validator.addMethod("matriz-ui-datatype-date", function(dateString) { 27 return moment(dateString, matriz.utils.internationalization.translate("DD/MM/YYYY", "localization")).isValid(); 28 }, "A data informada não é válida."); 29 30 jQuery.validator.addMethod("matriz-ui-datatype-ie", function(ieString) { 31 if (ieString.length > 0) { 32 var ie = ieString.replace(/\W/g,""); 33 try { 34 matriz.datatype.IE(ie); 35 } catch (error) { 36 return false; 37 } 38 } 39 return true; 40 }, "A Inscrição Estadual informada possui um valor inválido."); 41 42 jQuery.validator.addMethod("matriz-ui-datatype-codigo", function(codigoString) { 43 const codigoRegex = /^([0-9a-zA-Z+]{4})*(([0-9a-zA-Z+]{2}==)|([0-9a-zA-Z+]{3}=))?$/; 44 return codigoRegex.test(codigoString) && codigoString.length >= 40; 45 }, "O código de acompanhamento informado possui um valor inválido."); 46 47});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.