News for hackers. Stuff that matters.
Re:The “Chad” bug by raverbashing on Thursday December 31, 2015 @05:58AM (#10817136)
Using tools is good, but also people should test them in their unit test, for what it should/should not be accepted

If you're forbidding items beginning with numbers, just have a test try passing '1a' and failing the match

Re:The “Chad” bug by TeMPOraL on Thursday December 31, 2015 @06:03AM (#10817147)
I agree of course. Unit tests like that are both basic sanity checks and, more importantly, protect you from stupid mistakes when the regexp has to be changed.