Closed CSenshi closed 4 years ago
Rule Name: Octal
Rule Description: The field under validation must be a octal number
Rule Usage Example:
reqs = {"data" : "73021"} rule = {"data" : "octal"} validate(reqs, rule) # True reqs = {"data" : "0o73021"} rule = {"data" : "octal"} validate(reqs, rule) # True reqs = {"data" : "23489"} rule = {"data" : "octal"} validate(reqs, rule) # False, It fails because "8" and "9" are not in octal
Before contributing please review RULES.md (check for duplication), also check CONTRIBUTING.md for more details :100:
Rule Name: Octal
Rule Description: The field under validation must be a octal number
Rule Usage Example:
Before contributing please review RULES.md (check for duplication), also check CONTRIBUTING.md for more details :100: