]> source.dussan.org Git - jquery.git/commitdiff
Fix build for jenkins
authorTimmy Willison <timmywillisn@gmail.com>
Thu, 15 Aug 2013 19:56:47 +0000 (15:56 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Thu, 15 Aug 2013 19:56:47 +0000 (15:56 -0400)
build/build.js

index 249b2792441cddcd5e9f75cb0ad3040f405d8b34..e4717d6069ca49fd1643de27bc603491de3b8dfe 100644 (file)
@@ -34,8 +34,9 @@ module.exports = function( grunt ) {
         * @param {String} contents The contents to be written (including their AMD wrappers)
         */
        function convert( name, path, contents ) {
+               console.log( path );
                // Convert var modules
-               if ( /\/var\//.test( path ) ) {
+               if ( /.\/var\//.test( path ) ) {
                        contents = contents
                                .replace( /define\([\w\W]*?return/, "var " + (/var\/([\w-]+)/.exec(name)[1]) + " =" )
                                .replace( rdefineEnd, "" );