Bug Tracker

Modify

Ticket #3034 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

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

comment:1 Changed 5 years ago by flesler

  • Owner set to flesler
  • Status changed from new to assigned

Right, will fix.

comment:2 Changed 5 years ago by flesler

  • Status changed from assigned to closed
  • Resolution set to fixed

Done at [5726].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.