Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

whitespace-regex

regexps1.9kMIT0.1.2

Regular expression for matching the whitespace in a string.

count, detect, exec, expression, find, match, regex, regexp, regular, space, split, test, whitespace

readme

whitespace-regex NPM version

Regular expression for matching the whitespace in a string.

Install

Install with npm

$ npm i whitespace-regex --save

Usage

var regex = require('whitespace-regex')();

regex.test('      foo    ');
//=> false

regex.test('             ');
//=> true

Other regex projects

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on September 22, 2015.