xDimGG / node-steamapi

An object-oriented Steam API wrapper for Node.js developers.
https://www.npmjs.com/package/steamapi
177 stars 43 forks source link

Fixed wrong resolving of custom steamid with a '-' char #22

Closed Scui1 closed 3 years ago

Scui1 commented 4 years ago

You can test your current code with this custom profile url for example: https://steamcommunity.com/id/-koby- With the current code it is wrongly resolved to: 76561197991350313 This is due to the id being seen as this: https://steamcommunity.com/id/id With the fix it is correctly resolved to: 76561198111012432