feat: Add support for displaying display related CBS elements in highlighter

This commit is contained in:
kwaroran
2024-05-26 08:20:49 +09:00
parent 93cba968b5
commit d6e663c604
3 changed files with 23 additions and 21 deletions

View File

@@ -1035,7 +1035,7 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
if(!matcherArg.displaying){
return ''
}
return `<div class="risu-comment">${p1.substring(8)}</div>`
return `<div class="risu-comment">${p1.substring(p1[8] === ':' ? 9 : 8)}</div>`
}
return null
} catch (error) {