Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 450 Bytes

.verb.md

File metadata and controls

18 lines (13 loc) · 450 Bytes

See the wikipedia punctuation article for more details.

Usage

var punctuation = require('{%= name %}');

// the main export is a function that must be called
console.log(punctuation().test('!'));
//=> true

Pass true to get a regex for matching the additional "supplemental" characters mentioned in the wikipedia article.

console.log(punctuation(true).test('‘'));
//=> true