File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ const Prompt = ({ prompt, defaultOpen }) => {
25
25
. replaceAll ( linkRegex , `a href="${ process . env . LMS_BASE_URL } /asset-v1$1` ) ;
26
26
27
27
const staticRegex = {
28
- img : / i m g s r c = " \/ s t a t i c ( .* ) / g,
29
- link : / a h r e f = " \/ s t a t i c ( .* ) / g,
28
+ img : / i m g s r c = " \/ s t a t i c \/ ( .* ) / g,
29
+ link : / a h r e f = " \/ s t a t i c \/ ( .* ) / g,
30
30
} ;
31
31
const promptWithStaticAssets = promptWithAssets
32
- . replaceAll ( staticRegex . img , `img src="${ process . env . LMS_BASE_URL } /${ baseAssetUrl } @ $1` )
33
- . replaceAll ( staticRegex . link , `a href="${ process . env . LMS_BASE_URL } /${ baseAssetUrl } @ $1` ) ;
32
+ . replaceAll ( staticRegex . img , `img src="${ process . env . LMS_BASE_URL } /${ baseAssetUrl } $1` )
33
+ . replaceAll ( staticRegex . link , `a href="${ process . env . LMS_BASE_URL } /${ baseAssetUrl } $1` ) ;
34
34
return (
35
35
< Collapsible title = { ( < h3 className = "py-3" > { title } </ h3 > ) } open = { open } onToggle = { toggleOpen } >
36
36
< div dangerouslySetInnerHTML = { { __html : promptWithStaticAssets } } />
You can’t perform that action at this time.
0 commit comments