mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 10:32:59 +03:00
fix strip colors
This commit is contained in:
parent
b9522bdf47
commit
ee80265097
@ -100,8 +100,10 @@ function updateCursor() {
|
|||||||
cursor.scrollIntoView({behavior: "smooth", inline: "end"})
|
cursor.scrollIntoView({behavior: "smooth", inline: "end"})
|
||||||
}
|
}
|
||||||
|
|
||||||
function stripColors(content) {
|
function stripColors(input) {
|
||||||
return stripHtml(convertColorCodes(content))
|
return input.replace(/\$#([0-9a-fA-F]{6})/g, "")
|
||||||
|
.replace(/\$([A-Z_]+)--/g, "")
|
||||||
|
.replace(/\$reset/g, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeColorCodesPrintable(input) {
|
function makeColorCodesPrintable(input) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user