1.1.3 • Published 7 years ago

str-to-regexp v1.1.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 years ago

Converts a string to a regex object with flags.

Installation

npm install str-to-regexp

Usage

import toRegExp from 'str-to-regexp'

let regex = toRegExp('pattern')
let regex = toRegExp('/pattern/')
let regex = toRegExp('/pattern/flags')
1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago