Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 6 vuotta sitten | |
---|---|---|
.. | ||
LICENSE | 7 vuotta sitten | |
README.md | 7 vuotta sitten | |
index.js | 7 vuotta sitten | |
package.json | 6 vuotta sitten |
Returns true if the given string is a POSIX bracket expression (POSIX character class).
Install with npm:
$ npm install is-posix-bracket --save
var isPosixBracket = require('is-posix-bracket');
isPosixBracket('[foo:]]');
//=> false
isPosixBracket('[xdigit:]]');
//=> false
isPosixBracket('[[:xdigit:]]');
//=> true
isPosixBracket('[[:xdigit:]]');
//=> true
isPosixBracket('[[:alpha:]123]');
//=> true
isPosixBracket('[[:alpha:]123]');
//=> true
isPosixBracket('[a-c[:digit:]x-z]');
//=> true
isPosixBracket('[:al:]');
//=> true
isPosixBracket('[abc[:punct:][0-9]');
//=> true
You might also be interested in these projects:
true
if the given string looks like a glob pattern or an extglob pattern.… more | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
$ npm install verb && npm run docs
Or, if verb is installed globally:
$ verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v, on April 05, 2016.