File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ function toPairs(schema) {
161161}
162162
163163function toExpression ( find ) {
164- return typeof find === 'string' ? RegExp ( escape ( find ) , 'g' ) : find ;
164+ return typeof find === 'string' ? new RegExp ( escape ( find ) , 'g' ) : find ;
165165}
166166
167167function toFunction ( replace ) {
Original file line number Diff line number Diff line change 2828 "unist-util-visit-parents" : " ^1.1.0"
2929 },
3030 "devDependencies" : {
31- "browserify" : " ^14 .0.0" ,
31+ "browserify" : " ^16 .0.0" ,
3232 "esmangle" : " ^1.0.1" ,
3333 "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" ,
3737 "tape" : " ^4.4.0" ,
38- "xo" : " ^0.18 .0"
38+ "xo" : " ^0.21 .0"
3939 },
4040 "scripts" : {
4141 "build-md" : " remark . --quiet --frail --output" ,
Original file line number Diff line number Diff line change 22
33var test = require ( 'tape' ) ;
44var h = require ( 'hastscript' ) ;
5- var findAndReplace = require ( './ ' ) ;
5+ var findAndReplace = require ( '.' ) ;
66
77test ( 'findAndReplace' , function ( t ) {
88 t . throws (
You can’t perform that action at this time.
0 commit comments