regexp-support
Advanced tools
Comparing version
@@ -7,2 +7,3 @@ /** | ||
export declare const support: Readonly<{ | ||
nativeFlags: string; | ||
flags: { | ||
@@ -45,4 +46,40 @@ readonly multiline: boolean; | ||
}; | ||
hasFlagsProp: boolean; | ||
nativeFlags: string; | ||
prototype: { | ||
exec?: boolean; | ||
test?: boolean; | ||
readonly source?: boolean; | ||
readonly global?: boolean; | ||
readonly ignoreCase?: boolean; | ||
readonly multiline?: boolean; | ||
lastIndex?: boolean; | ||
compile?: boolean; | ||
readonly flags?: boolean; | ||
readonly sticky?: boolean; | ||
readonly unicode?: boolean; | ||
dotAll?: boolean; | ||
}; | ||
static: { | ||
readonly prototype?: boolean; | ||
$1?: boolean; | ||
$2?: boolean; | ||
$3?: boolean; | ||
$4?: boolean; | ||
$5?: boolean; | ||
$6?: boolean; | ||
$7?: boolean; | ||
$8?: boolean; | ||
$9?: boolean; | ||
lastMatch?: boolean; | ||
input?: boolean; | ||
$_?: boolean; | ||
'$&'?: boolean; | ||
lastParen?: boolean; | ||
'$+'?: boolean; | ||
leftContext?: boolean; | ||
'$`'?: boolean; | ||
rightContext?: boolean; | ||
'$\''?: boolean; | ||
$10?: boolean; | ||
$100?: boolean; | ||
}; | ||
}>; | ||
@@ -49,0 +86,0 @@ export import hasSupportFlag = lib.hasSupportFlag; |
@@ -10,3 +10,6 @@ "use strict"; | ||
const pattern_1 = require("./lib/pattern"); | ||
const prototype_1 = require("./lib/proto/prototype"); | ||
const static_1 = require("./lib/proto/static"); | ||
const _support = { | ||
nativeFlags: '', | ||
/** | ||
@@ -42,4 +45,5 @@ * flag support with name | ||
}, {}), | ||
hasFlagsProp: /x/g.flags === 'g', | ||
nativeFlags: '', | ||
//hasFlagsProp: /x/g.flags === 'g', | ||
prototype: prototype_1.testPrototype(), | ||
static: static_1.testStatic(), | ||
}; | ||
@@ -46,0 +50,0 @@ _support.nativeFlags = Object |
11
index.ts
@@ -9,4 +9,9 @@ /** | ||
import libPattern, { PatternSupport, testPattern, IPatternTestFn, IPatternTestRow } from './lib/pattern'; | ||
import { testPrototype } from './lib/proto/prototype'; | ||
import { testStatic } from './lib/proto/static'; | ||
const _support = { | ||
nativeFlags: '', | ||
/** | ||
@@ -55,5 +60,7 @@ * flag support with name | ||
hasFlagsProp: /x/g.flags === 'g', | ||
//hasFlagsProp: /x/g.flags === 'g', | ||
nativeFlags: '', | ||
prototype: testPrototype(), | ||
static: testStatic(), | ||
}; | ||
@@ -60,0 +67,0 @@ |
{ | ||
"name": "regexp-support", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "check RegExp ( regular expressions ) support", | ||
@@ -13,2 +13,4 @@ "keywords": [ | ||
"pattern", | ||
"proto", | ||
"prototype", | ||
"re", | ||
@@ -18,2 +20,3 @@ "regex", | ||
"regular expression", | ||
"static", | ||
"support", | ||
@@ -20,0 +23,0 @@ "supported", |
39640
22.83%23
35.29%1354
30.95%