diff --git a/components/http.js b/components/http.js index ebb1846..ada2f85 100644 --- a/components/http.js +++ b/components/http.js @@ -124,7 +124,7 @@ SteamCommunity.prototype._checkCommunityError = function(html, callback) { return err; } - if (typeof html === 'string' && html.match(/g_steamID = false;/) && html.match(/

Sign In<\/h1>/)) { + if (typeof html === 'string' && html.indexOf('g_steamID = false;') > -1 && html.indexOf('
Sign In
') > -1) { err = new Error("Not Logged In"); callback(err); this._notifySessionExpired(err);