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)
Calendar
General
Tracking
(Not tracked)
RESOLVED
FIXED
6.2
People
(Reporter: jorgk-bmo, Assigned: mschroeder)
Details
Attachments
(1 file)
|
1.57 KB,
patch
|
Fallen
:
review+
Fallen
:
approval-calendar-beta+
|
Details | Diff | Splinter Review |
+++ 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 | ||
Updated•8 years ago
|
Assignee: nobody → mschroeder
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•8 years ago
|
||
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)
| Reporter | ||
Comment 2•8 years ago
|
||
That's what I thought. Thanks.
Comment 3•8 years ago
|
||
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+
| Assignee | ||
Updated•8 years ago
|
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
| Reporter | ||
Updated•8 years ago
|
Target Milestone: --- → 6.3
| Reporter | ||
Comment 5•8 years ago
|
||
Beta (TB 60 beta 6, Calendar 6.2):
https://hg.mozilla.org/releases/comm-beta/rev/716b72efa5eb590a0c8a0f78e5474749bd0ec4bc
Target Milestone: 6.3 → 6.2
You need to log in
before you can comment on or make changes to this bug.
Description
•