astral-regex
- Version 2.0.0
- Published
- 3.4 kB
- No dependencies
- MIT license
Install
npm i astral-regex
yarn add astral-regex
pnpm add astral-regex
Overview
Regular expression for matching astral symbols
Index
Functions
Interfaces
Functions
function astralRegex
astralRegex: (options?: astralRegex.Options) => RegExp;
Regular expression for matching [astral symbols](https://everything2.com/title/astral+plane).
Returns
A
RegExp
for matching astral symbols.Example 1
import astralRegex = require('astral-regex');astralRegex({exact: true}).test('🦄');//=> true'foo 🦄 💩 bar'.match(astralRegex());//=> ['🦄', '💩']
Interfaces
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (3)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/astral-regex
.
- Markdown[](https://www.jsdocs.io/package/astral-regex)
- HTML<a href="https://www.jsdocs.io/package/astral-regex"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2952 ms. - Missing or incorrect documentation? Open an issue for this package.