Ticket #25992: 25992.1.diff
| File 25992.1.diff, 735 bytes (added by , 12 years ago) |
|---|
-
Gruntfile.js
4 4 SOURCE_DIR = 'src/', 5 5 BUILD_DIR = 'build/'; 6 6 7 // Load tasks. 7 // Load tasks. 8 8 require('matchdep').filterDev('grunt-*').forEach( grunt.loadNpmTasks ); 9 9 10 10 // Project configuration. … … 215 215 filepath = filepath.replace( /\\/g, '/' ); 216 216 217 217 // Match only the filename passed from cli 218 if ( filepath.lastIndexOf( '/' + file ) === filepath.length - ( file.length + 1 ) ) {218 if ( -1 !== filepath.indexOf( '/' + file ) && filepath.lastIndexOf( '/' + file ) === filepath.length - ( file.length + 1 ) ) { 219 219 return true; 220 220 } 221 221