erikjara / rut-lib

A Rust library for parsing, format and validate a Chilean ID (RUT)
MIT License
4 stars 3 forks source link

support for rut with preceding zeroes #12

Closed jfgodoy closed 3 years ago

jfgodoy commented 3 years ago

This PR resolves issue #8 as alternative for PR #11.

I only changed the REGEX to add support for preceding zeroes.

I had to replace the nth(0) calls with next() to pass the husky precommit checks.