diff --git a/resources/views/partials/checkins-list.blade.php b/resources/views/partials/checkins-list.blade.php index 2bb5b85..d39db26 100644 --- a/resources/views/partials/checkins-list.blade.php +++ b/resources/views/partials/checkins-list.blade.php @@ -6,16 +6,16 @@
@if($checkin->note) - @if(preg_match("/\[\[[^\]]+\]\]/", $checkin->note, $filepath)) - @if(preg_match("/\.webm/", $filepath[0])) + @if(preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath)) + @if(preg_match("/\.webm/", $filepath[1])) - @elseif(preg_match("/\.ogg/", $filepath[0])) + @elseif(preg_match("/\.ogg/", $filepath[1])) @endif @else