Steamgifts Auto Entry

Automatically enters giveaways on steamgifts.com

< Feedback on Steamgifts Auto Entry

Question/comment

§
Posted: 2017-04-03
Edited: 2017-04-15

open ( without a closing ) in game name in list

The script doesn't handle an open parenthesis, (, without a closing parenthesis, ), in the game name. The script just stops when the regexp checks the name of the game.

i was able to get around it by adding the following code to two lines
.replace("(", "\\(").replace(")", "\\)")


original
var rematch=new RegExp(gamelist[ti].name,"i").test(possibleentries[ei].name);
new
var rematch=new RegExp(gamelist[ti].name.replace("(", "\\(").replace(")", "\\)"),"i").test(possibleentries[ei].name);

original
if(RegExp(gamelist[gi].name,"i").test(name)==true) {
new
if(RegExp(gamelist[gi].name.replace("(", "\\(").replace(")", "\\)"),"i").test(name)==true) {

Post reply

Sign in to post a reply.