Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#8381 closed defect (duplicate)

ComboBox doesn't filter the string before using it in a regex in doHighlight

Reported by: Phil DeJarnett Owned by: Douglas Hays
Priority: high Milestone: 1.3
Component: Dijit - Form Version: 1.2.3
Keywords: ComboBox, doHighlight, regular expression, regex, unterminated parenthetical Cc:
Blocked By: Blocking:

Description

ComboBox? does not filter the search string when highlighting the current input. If this input contains reserved regex characters [like parentheses in the item "(Nothing Selected)"], it throws an "unterminated parenthetical" error (in FireFox?).

Simply wrapping "find" using dojo.regexp.escapeString() would solve this issue.

Change History (4)

comment:1 Changed 10 years ago by Douglas Hays

Owner: set to haysmark

comment:2 Changed 10 years ago by Douglas Hays

Milestone: tbd1.3
Owner: changed from haysmark to Douglas Hays
Status: newassigned

comment:3 Changed 10 years ago by Douglas Hays

Resolution: duplicate
Status: assignedclosed

Dup of #8109. Fixed in [15755] for 1.3.

comment:4 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.