mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 23:45:12 -05:00
Fix regexp for $.trim so it doesn't whack embedded spaces.
This commit is contained in:
@@ -29,7 +29,7 @@ var jQuery = function( selector, context ) {
|
||||
rnotwhite = /\S/,
|
||||
|
||||
// Used for trimming whitespace
|
||||
rtrim = /(\s|\u00A0)+|(\s|\u00A0)+$/g,
|
||||
rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
|
||||
|
||||
// Match a standalone tag
|
||||
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
|
||||
|
||||
Reference in New Issue
Block a user