Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
265cf0ef
Commit
265cf0ef
authored
Jan 18, 2011
by
Anton M
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an unused regex and optimize character escape regex usage.
parent
fc7bd612
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
core.js
src/core.js
+2
-7
No files found.
src/core.js
View file @
265cf0ef
...
...
@@ -19,12 +19,8 @@ var jQuery = function( selector, context ) {
// (both of which we optimize for)
quickExpr
=
/^
(?:[^
<
]
*
(
<
[\w\W]
+>
)[^
>
]
*$|#
([\w\-]
+
)
$
)
/
,
// Is it a simple selector
isSimple
=
/^.
[^
:#
\[\.
,
]
*$/
,
// Check if a string has a non-whitespace character in it
rnotwhite
=
/
\S
/
,
rwhite
=
/
\s
/
,
// Used for trimming whitespace
trimLeft
=
/^
\s
+/
,
...
...
@@ -1039,9 +1035,8 @@ if ( indexOf ) {
};
}
// Verify that \s matches non-breaking spaces
// (IE fails on this test)
if
(
!
rwhite
.
test
(
"
\
xA0"
)
)
{
// IE doesn't match non-breaking spaces with \s
if
(
rnotwhite
.
test
(
"
\
xA0"
)
)
{
trimLeft
=
/^
[\s\x
A0
]
+/
;
trimRight
=
/
[\s\x
A0
]
+$/
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment