diff --git a/src/models/User.ts b/src/models/User.ts index 23ad108..d259523 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -59,8 +59,8 @@ export class User { topWikifolio.set({ title: $topWikifolio.querySelector('.c-icon-name__text')!.innerHTML.trim(), - perfever: toFloat($topWikifolio.querySelector('.c-ranking-item__value')!.innerHTML), - perf12m: toFloat($topWikifolio.querySelector('.c-ranking-item:nth-child(2) .c-ranking-item__value')!.innerHTML), + performanceEver: toFloat($topWikifolio.querySelector('.c-ranking-item__value')!.innerHTML), + performanceOneYear: toFloat($topWikifolio.querySelector('.c-ranking-item:nth-child(2) .c-ranking-item__value')!.innerHTML), user: this, sources: topWikifolio.sources.add('user.details') }) diff --git a/src/models/Wikifolio.ts b/src/models/Wikifolio.ts index fab5fc1..29f8444 100644 --- a/src/models/Wikifolio.ts +++ b/src/models/Wikifolio.ts @@ -1,7 +1,7 @@ import { fromDate, - matchResult, parseHtml, + removeHtml, removeValues, toCurrency, toDate, @@ -93,15 +93,13 @@ export interface WikifolioSearch { } interface WikifolioComment { - ref?: string html: string text: string createdAt: Date } const regex = { - script: /