From 2ea059c2d32d7f56bce0f6b6cb4ef11febc1b9f7 Mon Sep 17 00:00:00 2001 From: MetaPrime Date: Tue, 9 May 2017 13:39:00 -0700 Subject: [PATCH] Fix furaffinity text file naming. Closes #479 --- .../com/rarchives/ripme/ripper/rippers/FuraffinityRipper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/FuraffinityRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/FuraffinityRipper.java index 2a43c60e..03205e1a 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/FuraffinityRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/FuraffinityRipper.java @@ -177,6 +177,7 @@ public class FuraffinityRipper extends AbstractHTMLRipper { String saveAs = ""; File saveFileAs; saveAs = text.split("\n")[0]; + saveAs = saveAs.replaceAll("^(\\S+)\\s+by\\s+(.*)$", "$2_$1"); for (int i = 1;i < text.split("\n").length; i++) { newText = newText.replace("\\","").replace("/","").replace("~","") + "\n" + text.split("\n")[i]; }