Opened 15 years ago
Closed 15 years ago
#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: | ||
Blocked by: | Blocking: |
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]
Note: See
TracTickets for help on using
tickets.
Right, will fix.