Use the correct escape for BOM; add build code to detect non-ASCII.

This commit is contained in:
Dave Methvin
2012-10-11 10:17:24 -04:00
parent 798a7a7ea2
commit 1450305402
2 changed files with 22 additions and 1 deletions

View File

@@ -605,7 +605,7 @@ jQuery.extend({
},
// Use native String.trim function wherever possible
trim: core_trim && !core_trim.call("\xFEFF\xA0") ?
trim: core_trim && !core_trim.call("\uFEFF\xA0") ?
function( text ) {
return text == null ?
"" :