summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Molares2021-01-14 11:35:17 +0100
committerPhilip Molares2021-01-14 11:35:17 +0100
commit1546786c635f744b8306428bf02e2ec0285fcb51 (patch)
tree5a7f6104fd9d8eca173d54d7ee217b829fda0c0c
parent35b0d39a12aa35f27fba8c1f50b1886706e7efef (diff)
changed the SCRIPT_END_PLACEHOLDER regex to case insensitive
this was suggested by @TobiasHoll in https://github.com/hackmdio/codimd/issues/1648 Signed-off-by: Philip Molares <philip.molares@udo.edu>
Diffstat (limited to '')
-rw-r--r--public/js/reveal-markdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/reveal-markdown.js b/public/js/reveal-markdown.js
index ad5bfd04..c49bb9a2 100644
--- a/public/js/reveal-markdown.js
+++ b/public/js/reveal-markdown.js
@@ -103,7 +103,7 @@ import { md } from './extra'
// prevent script end tags in the content from interfering
// with parsing
- content = content.replace(/<\/script>/g, SCRIPT_END_PLACEHOLDER)
+ content = content.replace(/<\/script>/gi, SCRIPT_END_PLACEHOLDER)
return '<script type="text/template">' + content + '</script>'
}