CSenshi / Validator

Easy-to-use, Highly Configurable Python Data Validator. Inspired by Laravel Validator
https://pypi.org/project/validator/
MIT License
46 stars 23 forks source link

Bug in converting string class to class instances #69

Closed iko1133 closed 4 years ago

iko1133 commented 4 years ago

changed line 72 in validator/parser/translator.py:

class_str = "".join(elem.lower().split("_"))
class_str = elem.lower()

It is bug and not only converts rules but also changes values. example: same:old_pass would be translated to same:oldpass

CSenshi commented 4 years ago

Fixed it in previous PRs.