Commit 798a7a7e authored by Dave Methvin's avatar Dave Methvin

Use Uglify's ascii_only to avoid converting UTF-8 escapes.

Thanks @curiousdannii!
parent a60fed4d
...@@ -112,7 +112,11 @@ module.exports = function( grunt ) { ...@@ -112,7 +112,11 @@ module.exports = function( grunt ) {
], ],
tasks: "dev" tasks: "dev"
}, },
uglify: {} uglify: {
codegen: {
ascii_only: true
}
}
}); });
// Default grunt. // Default grunt.
......
...@@ -605,8 +605,7 @@ jQuery.extend({ ...@@ -605,8 +605,7 @@ jQuery.extend({
}, },
// Use native String.trim function wherever possible // Use native String.trim function wherever possible
// Uglify converts escapes to UTF-8; this circumvents (#12690) trim: core_trim && !core_trim.call("\xFEFF\xA0") ?
trim: core_trim && !core_trim.call( String.fromCharCode( 0xFEFF, 0xA0 ) ) ?
function( text ) { function( text ) {
return text == null ? return text == null ?
"" : "" :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment