mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: Fixed issue with base path that contain 'var'
Remove the cwd from the paths, so the regex doesn't kick in on "var" Fixes gh-2450 Closes gh-2641
This commit is contained in:
parent
03eaadb131
commit
0c34e68843
@ -53,7 +53,7 @@ module.exports = function( grunt ) {
|
||||
var amdName;
|
||||
|
||||
// Convert var modules
|
||||
if ( /.\/var\//.test( path ) ) {
|
||||
if ( /.\/var\//.test( path.replace( process.cwd(), "" ) ) ) {
|
||||
contents = contents
|
||||
.replace( /define\([\w\W]*?return/, "var " + ( /var\/([\w-]+)/.exec( name )[ 1 ] ) + " =" )
|
||||
.replace( rdefineEnd, "" );
|
||||
|
Loading…
Reference in New Issue
Block a user