Skip to content

Commit

Permalink
[OpenId/Provider] Feature: Steam - simplify regexp in parseUserIdFrom…
Browse files Browse the repository at this point in the history
…Identity
  • Loading branch information
ovr committed May 7, 2018
1 parent 0afc51e commit e445883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenID/Provider/Steam.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public function getName()
protected function parseUserIdFromIdentity($identity)
{
preg_match(
'/^http:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/',
'/7[0-9]{15,25}/',
$identity,
$matches
);

return $matches[1];
return $matches[0];
}


Expand Down

0 comments on commit e445883

Please sign in to comment.