regexp-support
Advanced tools
Comparing version
@@ -32,2 +32,5 @@ /** | ||
}; | ||
pattern: { | ||
namedCapturingGroups: boolean; | ||
}; | ||
}>; | ||
@@ -34,0 +37,0 @@ export import hasSupportFlag = lib.hasSupportFlag; |
@@ -8,2 +8,3 @@ "use strict"; | ||
const flags_1 = require("./lib/flags"); | ||
const pattern_1 = require("./lib/pattern"); | ||
const _support = { | ||
@@ -33,2 +34,6 @@ /** | ||
flagsAll: {}, | ||
pattern: Object.keys(pattern_1.default).reduce(function (a, key) { | ||
a[key] = pattern_1.testPattern(key); | ||
return a; | ||
}, pattern_1.default), | ||
}; | ||
@@ -35,0 +40,0 @@ { |
@@ -7,2 +7,3 @@ /** | ||
import FlagsName from './lib/flags'; | ||
import PatternSupport, { testPattern } from './lib/pattern'; | ||
@@ -51,2 +52,8 @@ const _support = { | ||
}, | ||
pattern: Object.keys(PatternSupport).reduce(function (a, key) | ||
{ | ||
a[key] = testPattern(key); | ||
return a; | ||
}, PatternSupport), | ||
}; | ||
@@ -53,0 +60,0 @@ |
{ | ||
"name": "regexp-support", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "check RegExp ( regular expressions ) support", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -30,4 +30,8 @@ # regexp-support | ||
{ flags: | ||
{ dotAll: true, | ||
s: true, | ||
{ multiline: true, | ||
m: true, | ||
global: true, | ||
g: true, | ||
ignoreCase: true, | ||
i: true, | ||
sticky: true, | ||
@@ -37,12 +41,9 @@ y: true, | ||
u: true, | ||
dotAll: true, | ||
s: true, | ||
freeSpacing: false, | ||
x: false, | ||
n: false, | ||
multiline: true, | ||
m: true, | ||
global: true, | ||
g: true, | ||
ignoreCase: true, | ||
i: true }, | ||
flagsAll: { g: true, i: true, m: true, s: true, u: true, y: true } } | ||
n: false }, | ||
flagsAll: { g: true, i: true, m: true, s: true, u: true, y: true }, | ||
pattern: { namedCapturingGroups: true } } | ||
``` | ||
@@ -49,0 +50,0 @@ |
18939
35.24%14
27.27%715
34.4%53
1.92%