Skip to content
Permalink
Browse files

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

  • Loading branch information
dmethvin authored and jeresig committed Dec 6, 2009
1 parent 628e156 commit abbd2f4c3c93d9550cea81ccd6d6187c115eeb56
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -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>)?$/,

0 comments on commit abbd2f4

Please sign in to comment.
You can’t perform that action at this time.