@credithub/harlan-components 1.71.0 → 1.71.1
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.
|
@@ -115,9 +115,7 @@ var Protestos = function () {
|
|
|
115
115
|
var apresentante = XPathUtils.select('string(./nomeApresentante)', protesto);
|
|
116
116
|
var chave = XPathUtils.select('string(./nm_chave)', protesto);
|
|
117
117
|
var iaNome = iaOverrides[chave] || '';
|
|
118
|
-
return
|
|
119
|
-
regex.test(apresentante) ||
|
|
120
|
-
regex.test(iaNome));
|
|
118
|
+
return regex.test(cedente) || regex.test(iaNome);
|
|
121
119
|
});
|
|
122
120
|
};
|
|
123
121
|
var protestosDeCredito = filterProtestos(REGEX_PROTESTOS_DE_CREDITO, data, iaOverrides).sort(byDate);
|
|
@@ -125,14 +123,11 @@ var Protestos = function () {
|
|
|
125
123
|
var protestosGerais = XPathUtils.selectArray('//body//protesto', data)
|
|
126
124
|
.filter(function (protesto) {
|
|
127
125
|
var cedente = XPathUtils.select('string(./nomeCedente)', protesto);
|
|
128
|
-
var apresentante = XPathUtils.select('string(./nomeApresentante)', protesto);
|
|
129
126
|
var chave = XPathUtils.select('string(./nm_chave)', protesto);
|
|
130
127
|
var iaNome = iaOverrides[chave] || '';
|
|
131
128
|
return (!REGEX_PROTESTOS_DE_IMPOSTO.test(cedente) &&
|
|
132
|
-
!REGEX_PROTESTOS_DE_IMPOSTO.test(apresentante) &&
|
|
133
129
|
!REGEX_PROTESTOS_DE_IMPOSTO.test(iaNome) &&
|
|
134
130
|
!REGEX_PROTESTOS_DE_CREDITO.test(cedente) &&
|
|
135
|
-
!REGEX_PROTESTOS_DE_CREDITO.test(apresentante) &&
|
|
136
131
|
!REGEX_PROTESTOS_DE_CREDITO.test(iaNome));
|
|
137
132
|
})
|
|
138
133
|
.sort(byDate);
|