Comparing version 0.3.0 to 1.0.0
/*! | ||
* is-glob <https://github.com/jonschlinkert/is-glob> | ||
* | ||
* Copyright (c) 2014 Jon Schlinkert, contributors. | ||
* Licensed under the MIT license. | ||
* Copyright (c) 2014-2015 Jon Schlinkert. | ||
* Licensed under the MIT License | ||
*/ | ||
'use strict'; | ||
module.exports = function isGlob(str) { | ||
return typeof str === 'string' | ||
&& /[*{}?[\]]|(?:\(.*\|.*\))/.test(str); | ||
&& /[*{}?[\]]|\([^|]*\|[^)]*\)/.test(str); | ||
}; |
{ | ||
"name": "is-glob", | ||
"description": "Returns `true` if the given string looks like a glob pattern.", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/jonschlinkert/is-glob", | ||
@@ -19,3 +19,3 @@ "author": { | ||
"type": "MIT", | ||
"url": "https://github.com/jonschlinkert/is-glob/blob/master/LICENSE-MIT" | ||
"url": "https://github.com/jonschlinkert/is-glob/blob/master/LICENSE" | ||
}, | ||
@@ -22,0 +22,0 @@ "main": "index.js", |
@@ -24,2 +24,4 @@ # is-glob [![NPM version](https://badge.fury.io/js/is-glob.svg)](http://badge.fury.io/js/is-glob) | ||
//=> 'true' | ||
isGlob('abc/[a-z].js'); | ||
//=> 'true' | ||
isGlob('abc/{a,b}.js'); | ||
@@ -54,3 +56,3 @@ //=> 'true' | ||
## License | ||
Copyright (c) 2014 Jon Schlinkert | ||
Copyright (c) 2015 Jon Schlinkert | ||
Released under the MIT license | ||
@@ -60,2 +62,2 @@ | ||
_This file was generated by [verb](https://github.com/assemble/verb) on December 23, 2014._ | ||
_This file was generated by [verb](https://github.com/assemble/verb) on January 13, 2015._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
60
3420
4
9