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

is-glob

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-glob - npm Package Compare versions

Comparing version 0.3.0 to 1.0.0

LICENSE

8

index.js
/*!
* 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._
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