From 6797150c73102f15840fbf2607e30e87705534ea Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 28 Nov 2022 14:40:00 -0600 Subject: [PATCH] Add RegEx capturing group --- resources/views/partials/checkins-list.blade.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 @@

{!! render_date_difference($checkin->date) !!}

@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