@jsep-plugin/regex
v1.0.4
Published
Adds regex expression support
Downloads
8,379,720
Readme
@jsep-plugin/regex
A JSEP plugin for adding regex expression support. Allows expressions of the form:
jsep('/abc/');
jsep('/abc/ig');
jsep('/[a-z]{3}/ig.test(a)');
Install
npm install @jsep-plugin/regex
# or
yarn add @jsep-plugin/regex
Usage
import jsep from 'jsep';
import jsepRegex from '@jsep-plugin/regex';
jsep.plugins.register(jsepRegex);