Skip to content

Commit

Permalink
Modificador de RegExp desnecessário
Browse files Browse the repository at this point in the history
  • Loading branch information
recovieira committed Jul 4, 2018
1 parent 286f354 commit 3c93c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bb.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function registrarBoleto($parametros, $token) {
$dom = new DOMDocument('1.0', 'UTF-8');
// Verificar se o formato recebido é um XML válido.
// A expressão regular executada por "preg_replace" retira espaços vazios entre tags.
if (@$dom->loadXML(preg_replace('/(?<=>)\\s+(?=<)/s', '', $resposta))) {
if (@$dom->loadXML(preg_replace('/(?<=>)\\s+(?=<)/', '', $resposta))) {
// Realiza o "parse" da resposta a partir do primeiro nó no
// corpo do documento dentro do envelope
self::_parseXML($dom->documentElement->firstChild->firstChild, $resultado);
Expand Down

0 comments on commit 3c93c0b

Please sign in to comment.