Skip to content

Commit 1546786

Browse files
committed
changed the SCRIPT_END_PLACEHOLDER regex to case insensitive
this was suggested by @TobiasHoll in hackmdio/codimd#1648 Signed-off-by: Philip Molares <[email protected]>
1 parent 35b0d39 commit 1546786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/reveal-markdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ import { md } from './extra'
103103

104104
// prevent script end tags in the content from interfering
105105
// with parsing
106-
content = content.replace(/<\/script>/g, SCRIPT_END_PLACEHOLDER)
106+
content = content.replace(/<\/script>/gi, SCRIPT_END_PLACEHOLDER)
107107

108108
return '<script type="text/template">' + content + '</script>'
109109
}

0 commit comments

Comments
 (0)