gulp-match
Advanced tools
Comparing version 0.0.3 to 0.1.0
@@ -18,2 +18,8 @@ 'use strict'; | ||
if (typeof condition === 'string' && condition.match(/^\*\.[a-z\.]+$/)) { | ||
console.log('swapping to regex: '+condition); | ||
var newCond = condition.substring(1).replace(/\./g,'\\.')+'$'; | ||
condition = new RegExp(newCond); | ||
} | ||
if (typeof condition === 'object' && typeof condition.test === 'function' && condition.hasOwnProperty('source')) { | ||
@@ -20,0 +26,0 @@ // FRAGILE: ASSUME: it's a regex |
{ | ||
"name": "gulp-match", | ||
"description": "Does a vinyl file match a condition?", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"homepage": "https://github.com/robrich/gulp-match", | ||
@@ -24,3 +24,3 @@ "repository": "git://github.com/robrich/gulp-match.git", | ||
"scripts": { | ||
"test": "mocha && jshint ./*.js && jshint ./test/*.js" | ||
"test": "mocha && jshint ./index.js && jshint ./test/." | ||
}, | ||
@@ -27,0 +27,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
8094
58