File tree Expand file tree Collapse file tree 3 files changed +972
-717
lines changed Expand file tree Collapse file tree 3 files changed +972
-717
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable vars-on-top, no-var, prefer-template */
2- var isRegExp = require ( 'lodash.isregexp ' ) ;
3- var escapeRegExp = require ( 'lodash.escaperegexp ' ) ;
4- var isString = require ( 'lodash.isstring ' ) ;
5- var flatten = require ( 'lodash. flatten' ) ;
2+ var isRegExp = require ( 'lodash/isRegExp ' ) ;
3+ var escapeRegExp = require ( 'lodash/escapeRegExp ' ) ;
4+ var isString = require ( 'lodash/isString ' ) ;
5+ var flatten = require ( 'lodash/ flatten' ) ;
66
77/**
88 * Given a string, replace every substring that is matched by the `match` regex
Original file line number Diff line number Diff line change 11{
22 "name" : " react-string-replace" ,
3- "version" : " 0.4.0 " ,
3+ "version" : " 0.4.1 " ,
44 "description" : " String#replace for React components" ,
55 "license" : " MIT" ,
66 "main" : " index.js" ,
3131 " replace"
3232 ],
3333 "dependencies" : {
34- "lodash.escaperegexp" : " ^4.1.1" ,
35- "lodash.flatten" : " ^4.2.0" ,
36- "lodash.isregexp" : " ^4.0.1" ,
37- "lodash.isstring" : " ^4.0.1"
34+ "lodash" : " ^4.17.4"
3835 },
3936 "devDependencies" : {
40- "ava" : " ^0.20.0" ,
4137 "babel-eslint" : " ^8.0.0" ,
38+ "ava" : " ^0.23.0" ,
4239 "eslint" : " ^3.10.2" ,
4340 "eslint-config-iansinnott" : " ^1.0.1" ,
4441 "eslint-config-zen" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments