1
0
mirror of synced 2024-11-28 07:50:51 +01:00

Add a few more escape sequences to BishiBashi information message conversion.

This commit is contained in:
Jennifer Taylor 2021-08-12 19:06:31 +00:00
parent 98b836b96e
commit a0307f9ab2

View File

@ -85,6 +85,8 @@ class TheStarBishiBashi(
def __escape_string(self, data: Union[int, str]) -> str: def __escape_string(self, data: Union[int, str]) -> str:
data = str(data) data = str(data)
data = data.replace("#", "##") data = data.replace("#", "##")
data = data.replace("\r\n", "#n")
data = data.replace("\r", "#n")
data = data.replace("\n", "#n") data = data.replace("\n", "#n")
data = data.replace(" ", "#s") data = data.replace(" ", "#s")
data = data.replace(",", "#,") data = data.replace(",", "#,")