Skip to content

Commit f5a833e

Browse files
committedApr 30, 2018
Remove extend-shallow
1 parent fb74412 commit f5a833e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var parsers = require('./lib/parsers');
1111
* Module dependencies
1212
*/
1313

14-
var extend = require('extend-shallow');
1514
var Snapdragon = require('snapdragon');
1615
var toRegex = require('to-regex');
1716

@@ -51,7 +50,7 @@ function brackets(pattern, options) {
5150

5251
brackets.match = function(arr, pattern, options) {
5352
arr = [].concat(arr);
54-
var opts = extend({}, options);
53+
var opts = Object.assign({}, options);
5554
var isMatch = brackets.matcher(pattern, opts);
5655
var len = arr.length;
5756
var idx = -1;
@@ -142,7 +141,7 @@ brackets.matcher = function(pattern, options) {
142141

143142
brackets.makeRe = function(pattern, options) {
144143
var res = brackets.create(pattern, options);
145-
var opts = extend({strictErrors: false}, options);
144+
var opts = Object.assign({strictErrors: false}, options);
146145
return toRegex(res.output, opts);
147146
};
148147

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"test": "mocha"
2828
},
2929
"dependencies": {
30-
"extend-shallow": "^3.0.2",
3130
"posix-character-classes": "^1.0.0",
3231
"regex-not": "^1.0.0",
3332
"snapdragon": "^0.12.0",

0 commit comments

Comments
 (0)
Please sign in to comment.