tasks/json_bake.js
function replaceVariables( value ) {

            return value.replace( options.variableRegex, function( match, key ) {

                if ( options.variables[ key ] === undefined ) {
                    grunt.log.warn( "No variable definition found for: " + key );
                    return "";
                }

                return options.variables[ key ];
            } );

        }
function replaceVariables( value ) {

            return value.replace( options.variableRegex, function( match, key ) {

                if ( options.variables[ key ] === undefined ) {
                    grunt.log.warn( "No variable definition found for: " + key );
                    return "";
                }

                return options.variables[ key ];
            } );

        }
function replaceVariables ( value ) { return value . replace ( options . variableRegex , function ( match , key ) { if ( options . variables [ key ] === undefined ) { grunt . log . warn ( "No variable definition found for: " + key ) ; return "" ; } return options . variables [ key ] ; } ) ; }
Replaces defined variables in the given value
Replaces defined variables in the given value