aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-01-16 21:56:22 +0000
committerLouis Pilfold <louis@lpil.uk>2024-01-16 21:56:22 +0000
commit3f3a567de817cdc4b76a6ab7f595d018dbe3cfd0 (patch)
tree3d6ba56c53ba8a5c52c7bc5e9ac9912d548f1e16 /static/index.js
parent29da9b51c0d918b86108bdbf0f4c6e914b240283 (diff)
downloadtour-3f3a567de817cdc4b76a6ab7f595d018dbe3cfd0.tar.gz
tour-3f3a567de817cdc4b76a6ab7f595d018dbe3cfd0.zip
Multiline strings
Closes https://github.com/gleam-lang/try-gleam/issues/3
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/index.js b/static/index.js
index b6f2754..b2e1b45 100644
--- a/static/index.js
+++ b/static/index.js
@@ -23,7 +23,7 @@ const prismGrammar = {
greedy: true,
},
string: {
- pattern: /"(?:\\(?:\r\n|[\s\S])|(?!")[^\\\r\n])*"/,
+ pattern: /"((?:[^"\\]|\\.)*)"/,
greedy: true,
},
module: {