|
hace 2 años | |
---|---|---|
.. | ||
lib | hace 2 años | |
CHANGELOG.md | hace 2 años | |
LICENSE | hace 2 años | |
README.md | hace 2 años | |
ThirdPartyNoticeText.txt | hace 2 años | |
package.json | hace 2 años |
regular expression for matching unicode category.
# using npm
npm install --save unicode-regex
# using yarn
yarn add unicode-regex
const unicode = require('unicode-regex');
const regex = unicode({ General_Category: ['Punctuation'] }).toRegExp();
regex.test('a'); //=> false
regex.test('"'); //=> true
regex.test('“'); //=> true
declare function unicode(categories: {
[category: string]: SubCategory[];
}): Charset;
Returns a Charset for further processing, e.g. union, intersect, etc.
(Data from node-unicode-data
)
# lint
yarn run lint
# build
yarn run build
# test
yarn run test
MIT © Ika