Skip to content

Commit

Permalink
Fix regexp for $.trim so it doesn't whack embedded spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin authored and jeresig committed Dec 6, 2009
1 parent 628e156 commit abbd2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -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>)?$/,
Expand Down

0 comments on commit abbd2f4

Please sign in to comment.