Closed Bug 1193399 Opened 10 years ago Closed 10 years ago

flags argument of String.prototype.{search,match,replace} is deprecated

Categories

(Tree Management :: Bugherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KWierso, Assigned: KWierso)

Details

(Whiteboard: [bugherderq3want])

Attachments

(1 file)

Running Bugherder, I noticed the following warning in the console: 09:31:16.550 flags argument of String.prototype.{search,match,replace} is deprecated 1 UI.js:13:1 Apparently the extra "flags" parameter in replace is considered deprecated, and we should switch to using a regex if we need to use flags.
Attached file PR 26
Attachment #8646447 - Flags: review?(graeme.mccutcheon)
Whiteboard: [bugherderq3want]
Assignee: nobody → wkocher
Comment on attachment 8646447 [details] [review] PR 26 Much better. Thanks!
Attachment #8646447 - Flags: review?(graeme.mccutcheon) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: