Bug Tracker

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:


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 (2)

comment:1 Changed 15 years ago by flesler

Owner: set to flesler
Status: newassigned

Right, will fix.

comment:2 Changed 15 years ago by flesler

Resolution: fixed
Status: assignedclosed

Done at [5726].

Note: See TracTickets for help on using tickets.