is-supported-regexp-flag

WebJar for is-supported-regexp-flag

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-supported-regexp-flag
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

is-supported-regexp-flag
WebJar for is-supported-regexp-flag
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/is-supported-regexp-flag

Download is-supported-regexp-flag

How to add to project

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

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.

is-supported-regexp-flag Build Status

Check whether a RegExp flag is supported. Mostly useful for y and u.

Install

$ npm install is-supported-regexp-flag

Usage

const isSupportedRegexpFlag = require('is-supported-regexp-flag');

isSupportedRegexpFlag('g'); // As in `/foo/g`
//=> true

isSupportedRegexpFlag('u');
//=> false

The RegExp constructor throws if you're trying to use unsupported flags. This is a nicer way to check for support.

License

MIT © Sindre Sorhus

Versions

Version
1.0.1