[Pkg-javascript-commits] [node-is-extglob] 01/05: New upstream version 2.1.1

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Mon Dec 18 05:35:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository node-is-extglob.

commit a07cd94736735a461141b1fed752e43ea6f27424
Author: Pirate Praveen <praveen at debian.org>
Date:   Mon Dec 18 10:56:50 2017 +0530

    New upstream version 2.1.1
---
 .gitignore   |  3 ++-
 .travis.yml  |  5 +++++
 .verb.md     |  2 +-
 README.md    |  2 +-
 appveyor.yml | 26 ++++++++++++++++++++++++++
 index.js     | 13 +++++++------
 package.json | 10 ++++------
 7 files changed, 46 insertions(+), 15 deletions(-)

diff --git a/.gitignore b/.gitignore
index 7988154..ebe74fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
 test/actual
 actual
 coverage
+.nyc*
 
 # npm
 node_modules
@@ -13,9 +14,9 @@ npm-debug.log
 
 # misc
 _gh_pages
-benchmark
 bower_components
 vendor
 temp
 tmp
 TODO.md
+yarn.lock
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index 57b4b01..8acd460 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,11 @@
 sudo: false
+os:
+  - linux
+  - osx
 language: node_js
 node_js:
+  - node
   - '6'
   - '4'
   - '0.12'
+  - '0.10'
diff --git a/.verb.md b/.verb.md
index 340ab82..65815f9 100644
--- a/.verb.md
+++ b/.verb.md
@@ -46,4 +46,4 @@ isExtglob('abc/def/ghi.js');
 
 **v2.0**
 
-Adds support for escaping. Escaped exglobs no longer return true.
\ No newline at end of file
+Adds support for escaping. Escaped exglobs no longer return true.
diff --git a/README.md b/README.md
index 416faa8..0416af5 100644
--- a/README.md
+++ b/README.md
@@ -104,4 +104,4 @@ Released under the [MIT license](https://github.com/jonschlinkert/is-extglob/blo
 
 ***
 
-_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on September 03, 2016._
\ No newline at end of file
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 12, 2016._
\ No newline at end of file
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..71b3df5
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,26 @@
+# Test against this version of Node.js
+environment:
+  matrix:
+    # node.js
+    - nodejs_version: "6.0"
+    - nodejs_version: "4.0"
+    - nodejs_version: "0.12"
+    - nodejs_version: "0.10"
+
+# Install scripts. (runs after repo cloning)
+install:
+  # Get the latest stable version of Node.js or io.js
+  - ps: Install-Product node $env:nodejs_version
+  # install modules
+  - npm install
+
+# Post-install test scripts.
+test_script:
+  # Output useful info for debugging.
+  - node --version
+  - npm --version
+  # run tests
+  - npm test
+
+# Don't actually build.
+build: off
diff --git a/index.js b/index.js
index 69e0858..c1d986f 100644
--- a/index.js
+++ b/index.js
@@ -6,14 +6,15 @@
  */
 
 module.exports = function isExtglob(str) {
-  if (!str || typeof str !== 'string') {
+  if (typeof str !== 'string' || str === '') {
     return false;
   }
 
-  var m, matches = [];
-  while ((m = /(\\).|([@?!+*]\(.*\))/g.exec(str))) {
-    if (m[2]) matches.push(m[2]);
-    str = str.slice(m.index + m[0].length);
+  var match;
+  while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) {
+    if (match[2]) return true;
+    str = str.slice(match.index + match[0].length);
   }
-  return matches.length;
+
+  return false;
 };
diff --git a/package.json b/package.json
index 77f1e3b..7a90836 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "is-extglob",
   "description": "Returns true if a string has an extglob.",
-  "version": "2.0.0",
+  "version": "2.1.1",
   "homepage": "https://github.com/jonschlinkert/is-extglob",
   "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
   "repository": "jonschlinkert/is-extglob",
@@ -10,9 +10,7 @@
   },
   "license": "MIT",
   "files": [
-    "index.js",
-    "LICENSE",
-    "README.md"
+    "index.js"
   ],
   "main": "index.js",
   "engines": {
@@ -55,9 +53,9 @@
     ],
     "related": {
       "list": [
+        "has-glob",
         "is-glob",
-        "micromatch",
-        "has-glob"
+        "micromatch"
       ]
     },
     "reflinks": [

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-is-extglob.git



More information about the Pkg-javascript-commits mailing list