Sha256: b20a2d76d308cf52da990e674bfa475731c37d266b4a90aab58b2bf1dc70bae8

Contents?: true

Size: 724 Bytes

Versions: 25

Compression:

Stored size: 724 Bytes

Contents

# astral-regex [![Build Status](https://travis-ci.org/kevva/astral-regex.svg?branch=master)](https://travis-ci.org/kevva/astral-regex)

> Regular expression for matching astral symbols


## Install

```
$ npm install astral-regex
```


## Usage

```js
const astralRegex = require('astral-regex');

astralRegex({exact: true}).test('');
//=> true
```


## API

### astralRegex([options])

Returns a `RegExp` for matching astral symbols.

#### options

Type: `Object`

##### exact

Type: `boolean`<br>
Default: `false` *(Matches any astral symbols in a string)*

Only match an exact string. Useful with `RegExp#test()` to check if a string is a astral symbol.


## License

MIT © [Kevin Mårtensson](https://github.com/kevva)

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
trusty-cms-5.0.7 node_modules/astral-regex/readme.md
trusty-cms-5.0.6 node_modules/astral-regex/readme.md
trusty-cms-5.0.5 node_modules/astral-regex/readme.md
trusty-cms-5.0.4 node_modules/astral-regex/readme.md
trusty-cms-5.0.3 node_modules/astral-regex/readme.md
trusty-cms-5.0.2 node_modules/astral-regex/readme.md
trusty-cms-5.0.1 node_modules/astral-regex/readme.md
trusty-cms-4.3.5 node_modules/astral-regex/readme.md
trusty-cms-5.0.0 node_modules/astral-regex/readme.md
trusty-cms-4.3.4 node_modules/astral-regex/readme.md
trusty-cms-4.3.3 node_modules/astral-regex/readme.md
trusty-cms-4.3.2 node_modules/astral-regex/readme.md
trusty-cms-4.3.1 node_modules/astral-regex/readme.md
trusty-cms-4.3 node_modules/astral-regex/readme.md
trusty-cms-4.2.3 node_modules/astral-regex/readme.md
trusty-cms-4.2.2 node_modules/astral-regex/readme.md
trusty-cms-4.2.1 node_modules/astral-regex/readme.md
trusty-cms-4.2 node_modules/astral-regex/readme.md
trusty-cms-4.1.9 node_modules/astral-regex/readme.md
trusty-cms-4.1.8 node_modules/astral-regex/readme.md