Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #11 from roccivic/capture-groups
Browse files Browse the repository at this point in the history
Added capture groups
  • Loading branch information
fitzgen committed Dec 4, 2016
2 parents 60be6c5 + cb4d112 commit 78bb4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -107,11 +107,11 @@ module.exports = function (glob, opts) {

if (isGlobstar) {
// it's a globstar, so match zero or more path segments
reStr += "(?:[^/]*(?:\/|$))*";
reStr += "((?:[^/]*(?:\/|$))*)";
i++; // move over the "/"
} else {
// it's not a globstar, so only match one path segment
reStr += "[^/]*";
reStr += "([^/]*)";
}
}
break;
Expand Down

0 comments on commit 78bb4bd

Please sign in to comment.