Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Add We are currently investigating issues some players are having log…
Browse files Browse the repository at this point in the history
…ging into the North American and European PlayStation® megaservers.

Add The issues related to logging in to the North American and European PlayStation® megaservers have been resolved at this time.
Change The PlayStation® Network is currently experiencing a service interruption.** to **The PlayStation™ Network is currently experiencing a service interruption.
Change **The PlayStation® Network service interruption has been resolved.** to **The PlayStation™ Network service interruption has been resolved.
  • Loading branch information
dov118 committed Jul 22, 2021
1 parent 389962a commit 6b0b25d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,12 @@ export class EsoStatus {
}
}
if (raw.includes('PlayStation® megaserver')) {
if (raw.includes('North American')) {
slugs.push('ps_na');
} else if (raw.includes('European')) {
slugs.push('ps_eu');
if (raw.includes('North American') || raw.includes('European')) {
if (raw.includes('North American')) {
slugs.push('ps_na');
} if (raw.includes('European')) {
slugs.push('ps_eu');
}
} else {
slugs.push('ps_na');
slugs.push('ps_eu');
Expand Down Expand Up @@ -389,7 +391,7 @@ export class EsoStatus {
if (raw.includes('account system')) {
slugs.push('account_system');
}
if (raw.includes('PlayStation® Network')) {
if (raw.includes('PlayStation Network')) {
slugs.push('ps_na');
slugs.push('ps_eu');
}
Expand Down
16 changes: 14 additions & 2 deletions tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ const rawExemples = [
},
{
index: 8,
rawStatus: 'The PlayStation® Network is currently experiencing a service interruption.',
rawStatus: 'The PlayStation Network is currently experiencing a service interruption.',
slugs: ['ps_na', 'ps_eu'],
status: 'issues',
},
{
index: 9,
rawStatus: 'The PlayStation® Network service interruption has been resolved.',
rawStatus: 'The PlayStation Network service interruption has been resolved.',
slugs: ['ps_na', 'ps_eu'],
status: 'up',
},
Expand Down Expand Up @@ -231,6 +231,18 @@ const rawExemples = [
slugs: ['pc_eu'],
status: 'issues',
},
{
index: 39,
rawStatus: 'We are currently investigating issues some players are having logging into the North American and European PlayStation® megaservers.',
slugs: ['ps_na', 'ps_eu'],
status: 'issues',
},
{
index: 40,
rawStatus: 'The issues related to logging in to the North American and European PlayStation® megaservers have been resolved at this time.',
slugs: ['ps_na', 'ps_eu'],
status: 'up',
},
];

const slugZoneSupportExemples = [
Expand Down

0 comments on commit 6b0b25d

Please sign in to comment.