mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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.
This commit is contained in:
parent
02c5e2908c
commit
6e605afb1f
@ -38,7 +38,7 @@ module.exports = function( grunt ) {
|
|||||||
// Avoid breaking semicolons inserted by r.js
|
// Avoid breaking semicolons inserted by r.js
|
||||||
skipSemiColonInsertion: true,
|
skipSemiColonInsertion: true,
|
||||||
wrap: {
|
wrap: {
|
||||||
start: wrapper[ 0 ].replace( /\/\*eslint .* \*\/\n/, "" ),
|
start: wrapper[ 0 ].replace( /\/\*\s*eslint(?: |-).*\s*\*\/\n/, "" ),
|
||||||
end: globals.replace(
|
end: globals.replace(
|
||||||
/\/\*\s*ExcludeStart\s*\*\/[\w\W]*?\/\*\s*ExcludeEnd\s*\*\//ig,
|
/\/\*\s*ExcludeStart\s*\*\/[\w\W]*?\/\*\s*ExcludeEnd\s*\*\//ig,
|
||||||
""
|
""
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*eslint-disable no-unused-vars*/
|
/* eslint-disable no-unused-vars*/
|
||||||
/*!
|
/*!
|
||||||
* jQuery JavaScript Library v@VERSION
|
* jQuery JavaScript Library v@VERSION
|
||||||
* https://jquery.com/
|
* https://jquery.com/
|
||||||
|
Loading…
Reference in New Issue
Block a user