even better sandbox

This commit is contained in:
りき萌 2024-02-18 12:10:02 +01:00
parent 0580db6c68
commit 668e9a050e
10 changed files with 169 additions and 19 deletions

View file

@ -306,8 +306,8 @@ export function CodeJar(editor, highlight, opt = {}) {
}
}
function handleSelfClosingCharacters(event) {
const open = `([{'"`;
const close = `)]}'"`;
const open = `([{'"\``;
const close = `)]}'"\``;
if (open.includes(event.key)) {
preventDefault(event);
const pos = save();