diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2014-07-17 10:25:59 -0700 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2014-07-17 10:25:59 -0700 |
commit | c869a1ef8a031342e817a2c063179a787ff57239 (patch) | |
tree | bf70e1683cc53d5d3793a8deb0aaafe2bd684513 /src/core/init.js | |
parent | 8e3a0ceafa2c7c78902d0eab07d21b793deb5366 (diff) | |
download | jquery-c869a1ef8a031342e817a2c063179a787ff57239.tar.gz jquery-c869a1ef8a031342e817a2c063179a787ff57239.zip |
Build: update grunt-jscs-checker and pass with the new rules
Diffstat (limited to 'src/core/init.js')
-rw-r--r-- | src/core/init.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/init.js b/src/core/init.js index 7e83a0496..e49196a96 100644 --- a/src/core/init.js +++ b/src/core/init.js @@ -23,7 +23,10 @@ var rootjQuery, // Handle HTML strings if ( typeof selector === "string" ) { - if ( selector[0] === "<" && selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) { + if ( selector[0] === "<" && + selector[ selector.length - 1 ] === ">" && + selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; |