Commit abbd2f4c authored by Dave Methvin's avatar Dave Methvin Committed by John Resig

Fix regexp for $.trim so it doesn't whack embedded spaces.

parent 628e1564
...@@ -29,7 +29,7 @@ var jQuery = function( selector, context ) { ...@@ -29,7 +29,7 @@ var jQuery = function( selector, context ) {
rnotwhite = /\S/, rnotwhite = /\S/,
// Used for trimming whitespace // Used for trimming whitespace
rtrim = /(\s|\u00A0)+|(\s|\u00A0)+$/g, rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
// Match a standalone tag // Match a standalone tag
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
......
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