Socket
Socket
Sign inDemoInstall

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.1.2 to 0.1.3

2

minimatch.js

@@ -774,3 +774,3 @@ module.exports = minimatch

})
if (!options.null && !list.length) {
if (options.nonull && !list.length) {
list.push(pattern)

@@ -777,0 +777,0 @@ }

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

"description": "a glob matcher in javascript",
"version": "0.1.2",
"version": "0.1.3",
"repository": {

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

@@ -193,6 +193,7 @@ # minimatch

### null
### nonull
Return an empty list from minimatch.match, instead of a list
containing the pattern itself.
When a match is not found by `minimatch.match`, return a list containing
the pattern itself. When set, an empty list is returned if there are
no matches.

@@ -203,3 +204,3 @@ ### matchBase

against the basename of the path if it contains slashes. For example,
`a?b` would match the path `/xyz/123/acb`, but not `/xyz/abc/123`.
`a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`.

@@ -206,0 +207,0 @@ ### nocomment

@@ -23,6 +23,6 @@ // http://www.bashcookbook.com/bashinfo/source/bash-1.14.7/tests/glob-test

, ["a*", ["a", "abc", "abd", "abe"]]
, ["X*", ["X*"]]
, ["X*", ["X*"], {nonull: true}]
// allow null glob expansion
, ["X*", [], { null: true }]
, ["X*", []]

@@ -32,5 +32,5 @@ // isaacs: Slightly different than bash/sh/ksh

// but it does make it get treated as a literal star
, ["\\*", ["\\*"]]
, ["\\**", ["\\**"]]
, ["\\*\\*", ["\\*\\*"]]
, ["\\*", ["\\*"], {nonull: true}]
, ["\\**", ["\\**"], {nonull: true}]
, ["\\*\\*", ["\\*\\*"], {nonull: true}]

@@ -41,10 +41,10 @@ , ["b*/", ["bdir/"]]

, ["\\.\\./*/", ["\\.\\./*/"]]
, ["s/\\..*//", ["s/\\..*//"]]
, ["\\.\\./*/", ["\\.\\./*/"], {nonull: true}]
, ["s/\\..*//", ["s/\\..*//"], {nonull: true}]
, "legendary larry crashes bashes"
, ["/^root:/{s/^[^:]*:[^:]*:\([^:]*\).*$/\\1/"
, ["/^root:/{s/^[^:]*:[^:]*:\([^:]*\).*$/\\1/"]]
, ["/^root:/{s/^[^:]*:[^:]*:\([^:]*\).*$/\\1/"], {nonull: true}]
, ["/^root:/{s/^[^:]*:[^:]*:\([^:]*\).*$/\1/"
, ["/^root:/{s/^[^:]*:[^:]*:\([^:]*\).*$/\1/"]]
, ["/^root:/{s/^[^:]*:[^:]*:\([^:]*\).*$/\1/"], {nonull: true}]

@@ -150,3 +150,3 @@ , "character classes"

, "paren sets cannot contain slashes"
, ["*(a/b)", ["*(a/b)"], {}, ["a/b"]]
, ["*(a/b)", ["*(a/b)"], {nonull: true}, ["a/b"]]

@@ -176,3 +176,3 @@ // brace sets trump all else.

, ["+(a|b\\|c\\\\|d\\\\|e\\\\\\\\|f\\\\\\\\|g"]
, {null: true}
, {}
, ["+(a|b\\|c\\\\|d\\\\|e\\\\\\\\|f\\\\\\\\|g", "a", "b\\c"]]

@@ -179,0 +179,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