diff --git a/dist/api.js b/dist/api.js index 47c0851..c38f8ae 100644 --- a/dist/api.js +++ b/dist/api.js @@ -124,9 +124,7 @@ function readHTML(html) { ...lines, ...extraLines.filter(d => d) ]; - //line 1 - //Pokémon Unite : Lv.40 Veteran: Class 3 - //Pokémon Unite : Lv.40 Master (1741) + //first line { //will be only text after "pokemon unite:" let line = lines[0].split(':').slice(1).join(':').trim(); diff --git a/src/api.ts b/src/api.ts index a437624..56c16c3 100644 --- a/src/api.ts +++ b/src/api.ts @@ -138,9 +138,7 @@ function readHTML(html: string): uniteApiData { ...extraLines.filter(d => d) ]; - //line 1 - //Pokémon Unite : Lv.40 Veteran: Class 3 - //Pokémon Unite : Lv.40 Master (1741) + //first line { //will be only text after "pokemon unite:" let line = lines[0].split(':').slice(1).join(':').trim();