Skip to content

Commit 80d5b9b

Browse files
committed
chore: fixup dev tool to support nested scopes
1 parent 993dff9 commit 80d5b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/developer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h3>Markup</h3>
282282
// update data-klass post-render for cool class previews
283283
this.$nextTick(() => {
284284
$(".hljs span").each((_,el) => {
285-
$(el).attr("data-klass", el.className.replace("hljs-",""))
285+
$(el).attr("data-klass", el.className.replace(/hljs-/g,""))
286286
})
287287
})
288288
}

0 commit comments

Comments
 (0)