Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correccion de comentarios y otros #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion rut_helper.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class RutHelper {
//validador de RUN CHILENOS en DART por FELIPE CACERES
static String charAt(String subject, int position) {
if (subject is! String ||
subject.length <= position ||
Expand Down Expand Up @@ -32,6 +33,9 @@ class RutHelper {
// Este codigo fue mostrado en el hacktoberfest Concepcion 2019
// #Hacktoberfest2019
// Aguante el CITT <3



// Aislar Cuerpo y Dígito Verificador

// Formatear RUN
Expand Down Expand Up @@ -68,7 +72,7 @@ class RutHelper {
// Casos Especiales (0 y K)
dv = (dv == 'K') ? '10' : dv;
dv= (dv == 0) ? '11' : dv;
// Validar que el Cuerpo coincide con su Dígito Verificador
// Validar que el Cuerpo del rut coincide con su Dígito Verificador
if (dvEsperado.toString() != dv.toString()) {
return false;
}
Expand Down