Tennessee Gibbs 0304752480 added pages to master | 6 år sedan | |
---|---|---|
.. | ||
LICENSE | 6 år sedan | |
README.md | 6 år sedan | |
index.js | 6 år sedan | |
package.json | 6 år sedan |
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.