Fix > and < not working

This commit is contained in:
kwaroran
2024-04-25 03:12:16 +09:00
parent be38e42186
commit 63e3492466
2 changed files with 31 additions and 4 deletions

View File

@@ -1233,6 +1233,10 @@ export function risuChatParser(da:string, arg:{
break
}
case '<':{
if(stackType[nested.length] === 1){
nested[0] += da[pointer]
break
}
nested.unshift('')
stackType[nested.length] = 2
break
@@ -1319,6 +1323,10 @@ export function risuChatParser(da:string, arg:{
break
}
case '>':{
if(stackType[nested.length] === 1){
nested[0] += da[pointer]
break
}
if(nested.length === 1 || stackType[nested.length] !== 2){
break
}