Skip to content

Commit

Permalink
Fix regexp for Advanced mode
Browse files Browse the repository at this point in the history
  • Loading branch information
daimoc committed Aug 28, 2023
1 parent 6254cc1 commit f1f3c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/AdvancedTokenGenerator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit f1f3c44

Please sign in to comment.