Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minimatch

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimatch - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

14

minimatch.js

@@ -263,2 +263,9 @@ ;(function (require, exports, module, platform) {

Minimatch.prototype.braceExpand = braceExpand
function pad(n, width, z) {
z = z || '0';
n = n + '';
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
}
function braceExpand (pattern, options) {

@@ -336,9 +343,14 @@ options = options || this.options

, start = +numset[1]
, needPadding = numset[1][0] === '0'
, startWidth = numset[1].length
, padded
, end = +numset[2]
, inc = start > end ? -1 : 1
, set = []
for (var i = start; i != (end + inc); i += inc) {
padded = needPadding ? pad(i, startWidth) : i + ''
// append all the suffixes
for (var ii = 0, ll = suf.length; ii < ll; ii ++) {
set.push(i + suf[ii])
set.push(padded + suf[ii])
}

@@ -345,0 +357,0 @@ }

2

package.json

@@ -5,3 +5,3 @@ {

"description": "a glob matcher in javascript",
"version": "0.3.0",
"version": "0.4.0",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -24,2 +24,9 @@ var tap = require("tap")

, [ "a{b}c", ["a{b}c"] ]
, [ "a{00..05}b"
, ["a00b"
,"a01b"
,"a02b"
,"a03b"
,"a04b"
,"a05b" ] ]
].forEach(function (tc) {

@@ -26,0 +33,0 @@ var p = tc[0]

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc