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 | |
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.
-rw-r--r-- | build/tasks/build.js | 2 | ||||
-rw-r--r-- | src/wrapper.js | 2 |
2 files changed, 2 insertions, 2 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, "" diff --git a/src/wrapper.js b/src/wrapper.js index d93d036d0..af90fb29e 100644 --- a/src/wrapper.js +++ b/src/wrapper.js @@ -1,4 +1,4 @@ -/*eslint-disable no-unused-vars*/ +/* eslint-disable no-unused-vars*/ /*! * jQuery JavaScript Library v@VERSION * https://jquery.com/ |