diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-10-24 17:26:43 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-10-24 17:26:43 -0400 |
commit | ee3eb6cabf1383efe479e090fe6ad8ed2e5a09a3 (patch) | |
tree | 904fd00bb924bdeb2b50f9d0c72802a6bcd22113 /src | |
parent | 09c089aac9236e9e1866d8daad2e3b61a57f7d4c (diff) | |
download | jquery-ee3eb6cabf1383efe479e090fe6ad8ed2e5a09a3.tar.gz jquery-ee3eb6cabf1383efe479e090fe6ad8ed2e5a09a3.zip |
Fix #10567. Make sure quickIs matches correct class name.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index a6cd82379..23e9ca0e0 100644 --- a/src/event.js +++ b/src/event.js @@ -16,7 +16,7 @@ var rnamespaces = /\.(.*)$/, // 0 1 2 3 4 5 // [ _, tag, id, class, attrName, attrValue ] quick[1] = ( quick[1] || "" ).toLowerCase(); - quick[3] = quick[3] && new RegExp( "\\b" + quick[3] + "\\b" ); + quick[3] = quick[3] && new RegExp( "(?:^|\\w)" + quick[3] + "(?:\\w|$)" ); } return quick; }, |