@eso-status/forum-message 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -247,8 +247,8 @@ var ForumMessageElement = /** @class */ (function () {
247
247
  .set('milliseconds', 0)
248
248
  .utcOffset(0));
249
249
  }
250
- else if (rawDate.includes('EDT / ')) {
251
- var dateTime = /EDT \/ ([0-9]{1,2}):([0-9]{1,2}) UTC/.exec(rawDate);
250
+ else if (rawDate.includes('EDT / ') || rawDate.includes('EST / ')) {
251
+ var dateTime = /E[D|S]T \/ ([0-9]{1,2}):([0-9]{1,2}) UTC/.exec(rawDate);
252
252
  // getDateWithHours
253
253
  list.push(moment()
254
254
  .utc()
@@ -262,7 +262,7 @@ var ForumMessageElement = /** @class */ (function () {
262
262
  .utcOffset(0));
263
263
  }
264
264
  else {
265
- var dateTime = /([a-zA-Z]{3,9}) ([0-9]{1,2}), [0-9]{1,2}:[0-9]{1,2}[a-zA-Z]{1,2} E[D|S]T \(([0-9]{1,2}):([0-9]{1,2}) UTC\) [–|-] [0-9]{1,2}:[0-9]{1,2}[a-zA-Z]{1,2} E[D|S]T \(([0-9]{1,2}):([0-9]{1,2}) UTC\)/.exec(rawDate);
265
+ var dateTime = /([a-zA-Z]{3,9}) ([0-9]{1,2})[ ]?, [0-9]{1,2}:[0-9]{1,2}[a-zA-Z]{1,2} E[D|S]T \(([0-9]{1,2}):([0-9]{1,2}) UTC\) [–|-] [0-9]{1,2}:[0-9]{1,2}[a-zA-Z]{1,2} E[D|S]T \(([0-9]{1,2}):([0-9]{1,2}) UTC\)/.exec(rawDate);
266
266
  var month = Number(moment().month(dateTime && dateTime.length >= 1 ? String(dateTime[1]) : '').format('M')) - 1;
267
267
  var day = dateTime && dateTime.length >= 1 ? Number(dateTime[2]) : 0;
268
268
  // getDateWithDayNumber
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eso-status/forum-message",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Library used to get servers status of The elders scrolls Online game with https://forums.elderscrollsonline.com/ and https://forums.elderscrollsonline.com/en/categories/pts",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {