Guest User

Untitled

a guest
Apr 25th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function pw1.validate(self, value)
  2. if #value <= 6 and not value:find('^[%-%.%w]+$') then
  3. return nil
  4. end
  5. if value:match("^(.)1*$") then
  6. return nil
  7. end
  8. return value
  9. end
Add Comment
Please, Sign In to add comment