File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ var gOPD = Object.getOwnPropertyDescriptor;
7
7
var tryRegexExecCall = function tryRegexExec ( value ) {
8
8
try {
9
9
var lastIndex = value . lastIndex ;
10
- value . lastIndex = 0 ;
10
+ value . lastIndex = 0 ; // eslint-disable-line no-param-reassign
11
11
12
12
regexExec . call ( value ) ;
13
13
return true ;
14
14
} catch ( e ) {
15
15
return false ;
16
16
} finally {
17
- value . lastIndex = lastIndex ;
17
+ value . lastIndex = lastIndex ; // eslint-disable-line no-param-reassign
18
18
}
19
19
} ;
20
20
var toStr = Object . prototype . toString ;
Original file line number Diff line number Diff line change 11
11
"scripts" : {
12
12
"pretest" : " npm run lint" ,
13
13
"test" : " npm run tests-only" ,
14
- "tests-only" : " node --harmony --es-staging test.js " ,
14
+ "tests-only" : " node --harmony --es-staging test" ,
15
15
"posttest" : " npx aud" ,
16
- "coverage" : " covert test.js" ,
17
- "coverage-quiet" : " covert test.js --quiet" ,
18
- "lint" : " eslint test.js *.js" ,
16
+ "coverage" : " covert test/index.js" ,
17
+ "lint" : " eslint ." ,
19
18
"eccheck" : " eclint check *.js **/*.js > /dev/null" ,
20
19
"version" : " auto-changelog && git add CHANGELOG.md" ,
21
20
"postversion" : " auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \" v$(node -e \" console.log(require('./package.json').version)\" )\" "
40
39
"has" : " ^1.0.3"
41
40
},
42
41
"devDependencies" : {
43
- "@ljharb/eslint-config" : " ^14.1.0 " ,
42
+ "@ljharb/eslint-config" : " ^15.0.2 " ,
44
43
"auto-changelog" : " ^1.16.2" ,
45
44
"covert" : " ^1.1.1" ,
46
45
"eclint" : " ^2.8.1" ,
47
- "eslint" : " ^6.4 .0" ,
46
+ "eslint" : " ^6.6 .0" ,
48
47
"replace" : " ^1.1.1" ,
49
48
"semver" : " ^6.3.0" ,
50
49
"tape" : " ^4.11.0"
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var test = require ( 'tape' ) ;
4
- var isRegex = require ( './ ' ) ;
4
+ var isRegex = require ( '.. ' ) ;
5
5
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol . toStringTag === 'symbol' ;
6
6
7
7
test ( 'not regexes' , function ( t ) {
You can’t perform that action at this time.
0 commit comments