The problem with versions after 5.0.3.Final doesn't happen if the text contains non-digit, like CPF 116.474.078-42 or CNPJ 18.470.211/0001-53. Only occurs if text is only digit like 11647407842 or 18470211000153.