diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-07-13 10:49:13 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-07-13 10:49:13 +0200 |
commit | 6e605afb1fb85dddf0e2b3563f5dee26cd77623e (patch) | |
tree | 6bd918986189949c5b58c3f944d1b407f27461e2 /build/tasks | |
parent | 02c5e2908c2d99f191f5ec9e365ef2a3d357d1eb (diff) | |
download | jquery-6e605afb1fb85dddf0e2b3563f5dee26cd77623e.tar.gz jquery-6e605afb1fb85dddf0e2b3563f5dee26cd77623e.zip |
Build: Fix the regex removing the ESLint comment from wrapper.js
The new regex from after the switch from JSHint to ESLint wasn't catching
the ESLint pragma correctly.
Also, the spacing of the pragma comment was updated to match other comments.
Diffstat (limited to 'build/tasks')
-rw-r--r-- | build/tasks/build.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js index d086ae8d6..7f0da1d6b 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -38,7 +38,7 @@ module.exports = function( grunt ) { // Avoid breaking semicolons inserted by r.js skipSemiColonInsertion: true, wrap: { - start: wrapper[ 0 ].replace( /\/\*eslint .* \*\/\n/, "" ), + start: wrapper[ 0 ].replace( /\/\*\s*eslint(?: |-).*\s*\*\/\n/, "" ), end: globals.replace( /\/\*\s*ExcludeStart\s*\*\/[\w\W]*?\/\*\s*ExcludeEnd\s*\*\//ig, "" |