Side navigation
#3034 closed enhancement (fixed)
Opened June 13, 2008 06:38AM UTC
Closed June 13, 2008 06:50PM UTC
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]
Right, will fix.