@eso-status/forum-message 2.0.0-dev.2 → 2.0.0-dev.4
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.
package/lib/connector.js
CHANGED
|
@@ -74,7 +74,10 @@ class Connector {
|
|
|
74
74
|
this.raw = this.raw.map((raw) => {
|
|
75
75
|
let initialRaw = raw;
|
|
76
76
|
initialRaw = initialRaw.replace(/<br\/>\n/g, '<br>');
|
|
77
|
-
|
|
77
|
+
if (!initialRaw.includes('. <')) {
|
|
78
|
+
return initialRaw.replace('. ', '.');
|
|
79
|
+
}
|
|
80
|
+
return initialRaw;
|
|
78
81
|
});
|
|
79
82
|
}
|
|
80
83
|
/**
|
|
@@ -48,7 +48,7 @@ class DateFormatter {
|
|
|
48
48
|
*/
|
|
49
49
|
getRawSpecialDate() {
|
|
50
50
|
const split = this.raw.split('on the PTS on ');
|
|
51
|
-
return split.length === 2 ? split[1] : '';
|
|
51
|
+
return split.length === 2 ? split[1].split('.')[0] : '';
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Method for generating the list of correctly formatted dates for case #1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eso-status/forum-message",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.4",
|
|
4
4
|
"description": "Library for retrieving and formatting data, available at https://forums.elderscrollsonline.com or https://forums.elderscrollsonline.com/en/categories/pts",
|
|
5
5
|
"author": "@dov118 <contact@dov118.dev> (https://dov118.dev)",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"prepare": "husky"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@eso-status/types": "2.0.0-dev.
|
|
89
|
+
"@eso-status/types": "2.0.0-dev.12",
|
|
90
90
|
"axios": "1.7.7",
|
|
91
91
|
"moment": "2.30.1"
|
|
92
92
|
},
|