Skip to content

Commit e78881e

Browse files
committed
fix: normaliza caractere para maiúsculo antes de calcular o valor ASCII
1 parent c298589 commit e78881e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

DFe.Utils/ChaveFiscal.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ private static string ObterDigitoVerificador(string chave)
123123
private static int ObterValorDoCaractere(char caractere)
124124
{
125125
const int zeroASCII = 48;
126-
return caractere - zeroASCII;
126+
var valor = char.ToUpper(caractere) - zeroASCII;
127+
return valor;
127128
}
128129

129130
/// <summary>

0 commit comments

Comments
 (0)