Make WordPress Core

Ticket #25992: 25992.1.diff

File 25992.1.diff, 735 bytes (added by atimmer, 12 years ago)
  • Gruntfile.js

     
    44                SOURCE_DIR = 'src/',
    55                BUILD_DIR = 'build/';
    66
    7         // Load tasks. 
     7        // Load tasks.
    88        require('matchdep').filterDev('grunt-*').forEach( grunt.loadNpmTasks );
    99
    1010        // Project configuration.
     
    215215                                        filepath = filepath.replace( /\\/g, '/' );
    216216
    217217                                        // 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 ) ) {
    219219                                                return true;
    220220                                        }
    221221