Skip to content

Commit

Permalink
chore: fixup dev tool to support nested scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Apr 4, 2021
1 parent 4eaee83 commit 55dd7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/developer.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ <h3>Markup</h3>
// update data-klass post-render for cool class previews
this.$nextTick(() => {
$(".hljs span").each((_,el) => {
$(el).attr("data-klass", el.className.replace("hljs-",""))
$(el).attr("data-klass", el.className.replace(/hljs-/g,""))
})
})
}
Expand Down

0 comments on commit 55dd7a6

Please sign in to comment.