Fixed bug with singleTag matching in core.js.

This commit is contained in:
jeresig 2009-11-30 13:42:19 -05:00
parent 84857abefc
commit 90ba57ce6d

View file

@ -32,7 +32,7 @@ var jQuery = function( selector, context ) {
rtrim = /^\s+|\s+$/g,
// Match a standalone tag
rsingleTag = /<(\w+)\s*\/?>(?:<\/\1>)?$/,
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
// Keep a UserAgent string for use with jQuery.browser
userAgent = navigator.userAgent.toLowerCase(),