Compare commits

..

No commits in common. "bde13cddc878481cb6dcdf60cf02ec6d3c4fa454" and "bb840e373685424915a84f89ad5cc41314773ae0" have entirely different histories.

2 changed files with 6 additions and 19 deletions

View file

@ -255,19 +255,19 @@
"color": "rgb(225, 225, 225)"
},
"Teto Tuesday": {
"color": "#d5738d",
"color": "rgb(255, 100, 100)",
"caseInsensitive": true
},
"Teto Territory": {
"color": "#d5738d",
"color": "rgb(255, 100, 100)",
"caseInsensitive": true
},
"Teto": {
"color": "#d5738d",
"color": "rgb(255, 100, 100)",
"caseInsensitive": true
},
"Kasane": {
"color": "#d5738d",
"color": "rgb(255, 100, 100)",
"caseInsensitive": true
},
"Ryouiki Tenkai": {

View file

@ -119,23 +119,10 @@ function highlighter(json, full = true) {
spanEnd = element.content.length
}
var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ") + 1
// if (highTable[index] == "ULTRAKILL") {
// console.log(startContent, " ---- ", endContent)
// }
var startContent = element.content.substring(spanStart - 1, termIndex)
var endContent = element.content.substring(termIndex + termKey.length, spanEnd)
if (startContent.includes("(") && !endContent.includes(")")) {
spanEnd = element.content.indexOf(")", spanStart) + 1
endContent = element.content.substring(termIndex + termKey.length, spanEnd)
}
else if (endContent.includes(")") && !startContent.includes("(")) {
spanStart = element.content.substring(0, spanStart).lastIndexOf("(")
startContent = element.content.substring(spanStart - 1, termIndex)
}
var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ") + 1
var startContent = element.content.substring(spanStart - 1, termIndex)
var style = termProps.style || ""
var classes = termProps.classes || ""