Closed Bug 1457622 Opened 8 years ago Closed 8 years ago

Linting errors: calendar/base/modules/utils/calCategoryUtils.jsm:75:63 | Unexpected control character(s) in regular expression: \x1a. (no-control-regex)

Categories

(Calendar :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jorgk-bmo, Assigned: mschroeder)

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1457064 +++ TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/base/modules/utils/calCategoryUtils.jsm:75:63 | Unexpected control character(s) in regular expression: \x1a. (no-control-regex)
Assignee: nobody → mschroeder
Status: NEW → ASSIGNED
Attached patch Patch v1Splinter Review
The usage of a control character is perfectly valid in this case, so I just disabled the eslint rule for those lines.
Attachment #8971766 - Flags: review?(philipp)
Attachment #8971766 - Flags: approval-calendar-beta?(philipp)
That's what I thought. Thanks.
Comment on attachment 8971766 [details] [diff] [review] Patch v1 Review of attachment 8971766 [details] [diff] [review]: ----------------------------------------------------------------- ::: calendar/base/modules/utils/calCategoryUtils.jsm @@ +69,5 @@ > stringToArray: function(aCategories) { > if (!aCategories) { > return []; > } > + /* eslint-disable no-control-regex */ I'd suggest to use // eslint-disable-next-line no-control-regex one liner lower. Good either way though.
Attachment #8971766 - Flags: review?(philipp)
Attachment #8971766 - Flags: review+
Attachment #8971766 - Flags: approval-calendar-beta?(philipp)
Attachment #8971766 - Flags: approval-calendar-beta+
Keywords: checkin-needed
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/cd078ad0eca4 Linting errors: calendar/base/modules/utils/calCategoryUtils.jsm:75:63 | Unexpected control character(s) in regular expression: \x1a. (no-control-regex). r=philipp
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 6.3
Target Milestone: 6.3 → 6.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: