Skip to content

Commit 14a539b

Browse files
author
jin
committed
$mol_view_tree2_class: more universality
1 parent 6ca5d68 commit 14a539b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/tree2/class/match.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace $ {
2-
const class_regex = /^[$A-Z][$\w<>]+$/
2+
const class_regex = /^[$A-Z][$\w<>\[\]()"'?|]+$/
33

44
export function $mol_view_tree2_class_match(klass?: $mol_tree2) {
55
if (! klass?.type) return false

0 commit comments

Comments
 (0)