diff --git a/src/classes/AdvancedTokenGenerator.class.php b/src/classes/AdvancedTokenGenerator.class.php index 1145933..b574232 100755 --- a/src/classes/AdvancedTokenGenerator.class.php +++ b/src/classes/AdvancedTokenGenerator.class.php @@ -20,7 +20,7 @@ private static function generateId(string $input, int $length = 8): string { } public function emailValidConference(string $room, string $email){ - $room_pattern = "/.(*)__(.*)_[0-9a-f]{6}-[0-9a-f]{6}-[0-9a-f]{6}$/"; + $room_pattern = "/(.*)__(.*)_[0-9a-f]{6}-[0-9a-f]{6}-[0-9a-f]{6}$/"; if (preg_match($room_pattern, $room, $match)){ $roomName = $match[1]; $uid = $match[2];