Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: color single-quoted strings in the bench editor

Richie McIlroyba44bbc50b2f
diff --git a/capcodec/bench/corpus/pages/common/editor.js b/capcodec/bench/corpus/pages/common/editor.js
index 54e76f0ad..3d2ec563b 100644
--- a/capcodec/bench/corpus/pages/common/editor.js
+++ b/capcodec/bench/corpus/pages/common/editor.js
@@ -154,7 +154,7 @@
continue;
}
}
- const sm = (lang === "py" ? /^[rRbBuUfF]{0,2}("|")/ : /^("|")/).exec(
+ const sm = (lang === "py" ? /^[rRbBuUfF]{0,2}("|')/ : /^("|')/).exec(
rest,
);
if (sm) {