Skip to content

Commit a18d213

Browse files
committed
fix: riic skill token style
1 parent 267268b commit a18d213

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/riic/richText2HTML.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const getTermId = str => str.replace(/^\W/, '').replace(/\W/g, '_');
33

44
export const richText2HTML = text => {
55
const result = text
6+
.replace(/(<@[^<>]+>)(<\$[^<>]+>)/g, '$2$1')
67
.replace(/<([^<>]+)>([^<>]+)<\/>/g, (str, key, value) => {
78
if (key.startsWith('@cc.')) {
89
return `{{span class="riic-rt ${getClassName(key)}"}}${value}{{/span}}`;

0 commit comments

Comments
 (0)