Fix RegEx

This commit is contained in:
Ben Goldsworthy 2022-11-28 14:28:47 -06:00
parent 5a529d4db9
commit ede920ed45

View file

@ -6,7 +6,7 @@
<p class="checkin__meta">{!! render_date_difference($checkin->date) !!}</p>
</summary>
@if($checkin->note)
@if(preg_match("/\[\[[^]]+\]\]/", $checkin->note, $filepath)
@if(preg_match("/\[\[[^\]]+\]\]/", $checkin->note, $filepath)
@if(preg_match("/\.webm/", $filepath)
<video controls>
<source src="/{{ $filepath }}" type="video/webm">