RocksonZeta / koa-validate

validate koa request params and format request params
https://github.com/RocksonZeta/koa-validate
MIT License
284 stars 32 forks source link

Sanitizer naming convention: .toLowercase() should be consistent with its Js version .toLowerCase() #32

Open getDorin opened 4 years ago

getDorin commented 4 years ago

I was confused why my validation was throwing an error only to realize I was spelling the toLowerCase() with camelCase instead of lowercases. Might be helpful for other people just starting with KOA Validate to keep things consistent whereas possible.