forked from cadence/breezewiki
odd
This commit is contained in:
parent
fb21700517
commit
1a996e7c89
1 changed files with 3 additions and 3 deletions
|
@ -36,11 +36,11 @@
|
||||||
(define (get-media-html url content-type)
|
(define (get-media-html url content-type)
|
||||||
(cond
|
(cond
|
||||||
[(eq? content-type #f) `""]
|
[(eq? content-type #f) `""]
|
||||||
[(regexp-match? #rx"^(?i)image/" content-type)
|
[(regexp-match? #rx"(?i:^image/)" content-type)
|
||||||
`(img (@ (src ,url)))]
|
`(img (@ (src ,url)))]
|
||||||
[(regexp-match? #rx"^(?i)audio/|^(?i)application/ogg(;|$)" content-type)
|
[(regexp-match? #rx"(?i:^audio/|^application/ogg(;|$))" content-type)
|
||||||
`(audio (@ (src ,url) (controls)))]
|
`(audio (@ (src ,url) (controls)))]
|
||||||
[(regexp-match? #rx"^(?i)video/" content-type)
|
[(regexp-match? #rx"(?i:^video/)" content-type)
|
||||||
`(video (@ (src ,url) (controls)))]
|
`(video (@ (src ,url) (controls)))]
|
||||||
[else `""]))
|
[else `""]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue