regex-combine-or
v1.0.5
Published
Combines an array of regexes into a single regex using `or` operator `|`
Downloads
5
Maintainers
Readme
regex-combine-or
Combines an array of regexes into a single regex using or
operator |
.
Usage
const { regexCombineOr } = require('regex-combine-or');
let regex = regexCombineOr(/node_modules/, /bower_components/);
console.log(regex)// /(node_modules)|(bower_components)/
License
MIT © Nivrith Mandayam Gomatam