steamutils 1.2.61 → 1.2.62
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6002,7 +6002,7 @@ class SteamUser {
|
|
|
6002
6002
|
return null
|
|
6003
6003
|
}
|
|
6004
6004
|
const $ = cheerio.load(response)
|
|
6005
|
-
const text = $('.help_event_limiteduser .help_event_limiteduser_spend').text()
|
|
6005
|
+
const text = $('.help_event_limiteduser .help_event_limiteduser_spend').text().replaceAll(/[\t\n\r]/gi, ' ').replaceAll(/\s+/g, ' ').trim()
|
|
6006
6006
|
if (text?.startsWith("Amount Spent on Steam")) {
|
|
6007
6007
|
return text
|
|
6008
6008
|
} else {
|