Modify ↓
Ticket #3034 (closed enhancement: fixed)
quickExpr does not catch ids with a dash
| Reported by: | arrix | Owned by: | flesler |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3 |
| Component: | core | Version: | 1.2.6 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/
Selectors like "#nav-home" or "#text-comment" do not match quickExpr and can't benefit from the speedup. Dash can be great for namespacing while naming ids.
\w -> [-\w]
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Right, will fix.