Fix preg_match
This commit is contained in:
parent
ede920ed45
commit
64fc3e9586
1 changed files with 3 additions and 3 deletions
|
@ -6,13 +6,13 @@
|
||||||
<p class="checkin__meta">{!! render_date_difference($checkin->date) !!}</p>
|
<p class="checkin__meta">{!! render_date_difference($checkin->date) !!}</p>
|
||||||
</summary>
|
</summary>
|
||||||
@if($checkin->note)
|
@if($checkin->note)
|
||||||
@if(preg_match("/\[\[[^\]]+\]\]/", $checkin->note, $filepath)
|
@if(preg_match("/\[\[[^\]]+\]\]/", $checkin->note, $filepath))
|
||||||
@if(preg_match("/\.webm/", $filepath)
|
@if(preg_match("/\.webm/", $filepath))
|
||||||
<video controls>
|
<video controls>
|
||||||
<source src="/{{ $filepath }}" type="video/webm">
|
<source src="/{{ $filepath }}" type="video/webm">
|
||||||
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath }}">link to the video</a> instead.</p>
|
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath }}">link to the video</a> instead.</p>
|
||||||
</video>
|
</video>
|
||||||
@elseif(preg_match("/\.ogg/", $filepath)
|
@elseif(preg_match("/\.ogg/", $filepath))
|
||||||
<audio controls>
|
<audio controls>
|
||||||
<source src="/{{ $filepath }}" type="audio/off">
|
<source src="/{{ $filepath }}" type="audio/off">
|
||||||
<p>Download <a href="/{{ $filepath }}">OGG</a> audio.</p>
|
<p>Download <a href="/{{ $filepath }}">OGG</a> audio.</p>
|
||||||
|
|
Loading…
Reference in a new issue