Fixed market search results including query string (fixes #113)

This commit is contained in:
Alexander Corn 2016-07-01 18:29:56 -04:00
parent 446e315183
commit 57fa7a679f

View File

@ -79,7 +79,7 @@ SteamCommunity.prototype.marketSearch = function(options, callback) {
};
function CMarketSearchResult(row) {
var match = row.attr('href').match(/\/market\/listings\/(\d+)\/(.+)/);
var match = row.attr('href').match(/\/market\/listings\/(\d+)\/([^\?\/]+)/);
this.appid = parseInt(match[1], 10);
this.market_hash_name = decodeURIComponent(match[2]);