From ea2123eef06a736d7801e4019337d44dd782272e Mon Sep 17 00:00:00 2001 From: iggyvolz Date: Tue, 16 Jun 2015 21:13:32 -0400 Subject: [PATCH] Update preg_match: web address now given instead of IP --- examples/utils/LoLNexusParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/utils/LoLNexusParser.php b/examples/utils/LoLNexusParser.php index 3abd9cf..fc75066 100644 --- a/examples/utils/LoLNexusParser.php +++ b/examples/utils/LoLNexusParser.php @@ -95,7 +95,7 @@ public function parsePlayer($regionId, $playerName, OutputInterface $output = nu $response = $buzz->get('http://www.lolnexus.com/ajax/get-game-info/' . self::$serverNames[$regionId - 1] . '.json?name=' . urlencode($playerName)); - if (!preg_match('/lrf:\/\/spectator [0-9.:]+ (.*) ([0-9]+) ([A-Z0-9]+) [0-9\.]+/', $response->getContent(), $matches)) { + if (!preg_match('/lrf:\/\/spectator [0-9a-zA-Z.:]+ (.*) ([0-9]+) ([A-Z0-9]+) [0-9\.]+/', $response->getContent(), $matches)) { throw new \RuntimeException('Cannot parse LoL Nexus game page, the game may be ended (sometimes LoLNexus\'s cache is bad), please retry.'); }