-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working properly #12
Comments
You are comparing an object to a string which is not valid in JS. I think what you are trying to do is: const ShareCode = require('csgo-sharecode');
const expectedCode = 'CSGO-GADqf-jjyJ8-cSP2r-smZRo-TO2xK'
const match = ShareCode.decode(expectedCode);
const code = ShareCode.encode(match.matchId, match.reservationId, match.tvPort);
console.log(code === expectedCode); |
You are right, I will check it and close the issue if it's working properly |
OK so the thing is I'm trying to make sure your tool works. For example codes like: I fetched them from CS:GO watch section. |
Fixed in 1.2.0, thanks for reporting! |
I tried to do a decode/encode test on the same Sharecode you posted in the Readme section,.
It always return
false
The text was updated successfully, but these errors were encountered: