]> source.dussan.org Git - jquery.git/commit
Build: Fix the regex parsing AMD var-modules (#4389)
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 13 May 2019 19:55:45 +0000 (21:55 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 25 Sep 2019 23:18:22 +0000 (01:18 +0200)
commit36b59c9661b7c24bb0271f813d2a02cac44de81a
tree0a30e40ee07e6e368aa0df4bb441590a6fcef8fe
parent30f5c6c3ee3a128c7b75a771d4cb8a5b750ae17d
Build: Fix the regex parsing AMD var-modules (#4389)

The previous regex caused the final jQuery binary to have syntax errors for
var-modules with names starting with "return". For example, the following module
wouldn't work when the file is named `returnTrue.js`:

```js
define( function() {
"use strict";
return function returnTrue() {
return true;
};
} );
```

Closes gh-4389

(cherry picked from commit 9ec09c3b4aa5182c2a8b8f51afb861b685a4003c)
build/tasks/build.js