From d1a6e65ce0eeb4f7ed36e297d2c8c60d8559a5f2 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Sun, 11 Aug 2024 01:47:18 +0200 Subject: [PATCH] fix: Properly escape backslash character in string --- reaper/cogs/log_reading.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reaper/cogs/log_reading.py b/reaper/cogs/log_reading.py index 4beb1b8..5f17a19 100644 --- a/reaper/cogs/log_reading.py +++ b/reaper/cogs/log_reading.py @@ -293,9 +293,9 @@ async def on_message(self, message): if "packages" in line: # Split the string after "R2Northstar/mods" to keep the folder name onwards - a = line.split("R2Northstar\packages")[1] - if "R2Northstar\mods" in line: - a = line.split("R2Northstar\mods")[1] + a = line.split("R2Northstar\\packages")[1] + if "R2Northstar\\mods" in line: + a = line.split("R2Northstar\\mods")[1] # Split the previous split at "audio" to cleanly format as "FolderName, audioname" # side note: why the fuck don't we use the mod name at all literally anywhere even when registering the audio fully b = a.split("audio")