astral-regex

WebJar for astral-regex

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

astral-regex
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

astral-regex
WebJar for astral-regex
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/kevva/astral-regex

Download astral-regex

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/astral-regex/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>astral-regex</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/astral-regex/
implementation 'org.webjars.npm:astral-regex:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/astral-regex/
implementation ("org.webjars.npm:astral-regex:1.0.0")
'org.webjars.npm:astral-regex:jar:1.0.0'
<dependency org="org.webjars.npm" name="astral-regex" rev="1.0.0">
  <artifact name="astral-regex" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='astral-regex', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "astral-regex" % "1.0.0"
[org.webjars.npm/astral-regex "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

astral-regex Build Status

Regular expression for matching astral symbols

Install

$ npm install astral-regex

Usage

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

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

'foo 🦄 💩 bar'.match(astralRegex());
//=> ['🦄', '💩']

API

astralRegex([options])

Returns a RegExp for matching astral symbols.

options

Type: Object

exact

Type: boolean
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

Versions

Version
1.0.0