Opened 10 years ago

Closed 10 years ago

#8530 closed defect (duplicate)

dojo.regexp.escapeString does not escape + (plus sign)

Reported by: Phil DeJarnett Owned by: anonymous
Priority: high Milestone: 1.3
Component: General Version: 1.2.3
Keywords: regexp Cc:
Blocked By: Blocking:

Description

The regexp escape function does not escape the plus sign (+), causing dynamically created regexes to fail if they have a plus in them.

Example: var regex = new RegExp?(dojo.regexp.escapeString("hello+world"), "i"); console.log(regex.test("Hello+World"));

Expected result: true Actual Result: false

Change History (1)

comment:1 Changed 10 years ago by Adam Peller

Milestone: tbd1.3
Resolution: duplicate
Status: newclosed

dup of #8346

Note: See TracTickets for help on using tickets.