Closed Bug 1063688 Opened 10 years ago Closed 9 years ago

Convert treeherder-service regexes to raw string literals

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

Details

Attachments

(1 file)

(In reply to Ed Morley [:edmorley] from bug 1043741 comment #7)
> * Switches the regex to raw literal string, since it's safer (we should
> probably do this everywhere at some point).
Blocks: 1072681
No longer blocks: 1072681
Assignee: nobody → emorley
Attachment #8550707 - Flags: review?(cdawson)
Status: NEW → ASSIGNED
Comment on attachment 8550707 [details] [review]
Use raw string literals for regexes

lgtm!
Attachment #8550707 - Flags: review?(cdawson) → review+
Commit pushed to master at https://github.com/mozilla/treeherder-service

https://github.com/mozilla/treeherder-service/commit/31acccb58082b3cbcfb8bc44c10d3c2346962701
Bug 1063688 - Use raw string literals for regexes

Since it avoids backslash expressions from being mis-interpreted if they
happen to match an escape sequence (eg '\b', '\n', ...).
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: