@eso-status/forum-message 2.0.0-dev.5 → 2.0.0-dev.6
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 +1 -0
- package/lib/raw.d.ts +3 -3
- package/package.json +1 -1
package/lib/connector.js
CHANGED
|
@@ -73,6 +73,7 @@ class Connector {
|
|
|
73
73
|
replace() {
|
|
74
74
|
this.raw = this.raw.map((raw) => {
|
|
75
75
|
let initialRaw = raw;
|
|
76
|
+
initialRaw = initialRaw.replace(' 。', '');
|
|
76
77
|
initialRaw = initialRaw.replace(/<br\/>\n/g, '<br>');
|
|
77
78
|
initialRaw = initialRaw.replace('. <br>', '.<br>');
|
|
78
79
|
if (!initialRaw.includes('. <')) {
|
package/lib/raw.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { EsoStatusRawData } from './interface/esoStatusRawData.interface';
|
|
|
4
4
|
* Class containing announcement information
|
|
5
5
|
*/
|
|
6
6
|
export default class Raw {
|
|
7
|
-
private url;
|
|
8
|
-
private raw;
|
|
7
|
+
private readonly url;
|
|
8
|
+
private readonly raw;
|
|
9
9
|
/**
|
|
10
10
|
* Status identification class
|
|
11
11
|
* @private
|
|
@@ -20,7 +20,7 @@ export default class Raw {
|
|
|
20
20
|
* Class for identifying the list of slugs
|
|
21
21
|
* @private
|
|
22
22
|
*/
|
|
23
|
-
private slugsIdentifier;
|
|
23
|
+
private readonly slugsIdentifier;
|
|
24
24
|
/**
|
|
25
25
|
* List of information about slugs found in the announcement
|
|
26
26
|
*/
|
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.6",
|
|
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",
|