Skip to content

Commit

Permalink
fix: Properly escape backslash character in string
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Aug 10, 2024
1 parent 806d81e commit d1a6e65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reaper/cogs/log_reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d1a6e65

Please sign in to comment.