js-hint
fixed validation regex and added test