File tree 3 files changed +7
-7
lines changed 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ function toPairs(schema) {
161
161
}
162
162
163
163
function toExpression ( find ) {
164
- return typeof find === 'string' ? RegExp ( escape ( find ) , 'g' ) : find ;
164
+ return typeof find === 'string' ? new RegExp ( escape ( find ) , 'g' ) : find ;
165
165
}
166
166
167
167
function toFunction ( replace ) {
Original file line number Diff line number Diff line change 28
28
"unist-util-visit-parents" : " ^1.1.0"
29
29
},
30
30
"devDependencies" : {
31
- "browserify" : " ^14 .0.0" ,
31
+ "browserify" : " ^16 .0.0" ,
32
32
"esmangle" : " ^1.0.1" ,
33
33
"hastscript" : " ^3.0.1" ,
34
- "nyc" : " ^11 .0.0" ,
35
- "remark-cli" : " ^4 .0.0" ,
36
- "remark-preset-wooorm" : " ^3 .0.0" ,
34
+ "nyc" : " ^12 .0.0" ,
35
+ "remark-cli" : " ^5 .0.0" ,
36
+ "remark-preset-wooorm" : " ^4 .0.0" ,
37
37
"tape" : " ^4.4.0" ,
38
- "xo" : " ^0.18 .0"
38
+ "xo" : " ^0.21 .0"
39
39
},
40
40
"scripts" : {
41
41
"build-md" : " remark . --quiet --frail --output" ,
Original file line number Diff line number Diff line change 2
2
3
3
var test = require ( 'tape' ) ;
4
4
var h = require ( 'hastscript' ) ;
5
- var findAndReplace = require ( './ ' ) ;
5
+ var findAndReplace = require ( '.' ) ;
6
6
7
7
test ( 'findAndReplace' , function ( t ) {
8
8
t . throws (
You can’t perform that action at this time.
0 commit comments