Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Latest commit

 

History

History
29 lines (24 loc) · 668 Bytes

punct.md

File metadata and controls

29 lines (24 loc) · 668 Bytes

Punct

Validates if the given input is a punct.

Valid values:

validator.punct().validate('.');
validator.punct().validate(',;:');
validator.punct().validate('-@#$*');
validator.punct().validate('!%^&');
validator.punct().validate('()[]{}');

Invalid values:

validator.punct().validate('');
validator.punct().validate(null);
validator.punct().validate(undefined);
validator.punct().validate('16-50');
validator.punct().validate('a');
validator.punct().validate(' ');
validator.punct().validate('Foo');
validator.punct().validate('12.1');
validator.punct().validate('-12');
validator.punct().validate(-12);
validator.punct().validate('( )_{}');