regexp-utils
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -34,3 +34,3 @@ "use strict"; | ||
*/ | ||
RU.makeGroupsUncapturing = function (re) { | ||
RU.makeGroupsNonCapturing = function (re) { | ||
// Make capturing groups non-capturing | ||
@@ -75,3 +75,3 @@ var match = re.match(OPEN_GROUP); | ||
matchers[i] = re; | ||
reBit = RU.makeGroupsUncapturing(RU.toSource(re)); | ||
reBit = RU.makeGroupsNonCapturing(RU.toSource(re)); | ||
} else { | ||
@@ -78,0 +78,0 @@ reBit = RU.escapeRegExp(re); |
{ | ||
"name": "regexp-utils", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "RegExp related utilities", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,1 +5,9 @@ regexp-utils | ||
A collection of a few regexp utilities. | ||
- isRegExp | ||
- toSource | ||
- escapeRegExp | ||
- makeGroupsNonCapturing | ||
- makeRegExpSwitch | ||
See [index.js](https://github.com/gwicke/regexp-utils/blob/master/index.js). |
4559
13