Handle when a string has an actual newline in it
This commit is contained in:
		| @@ -1761,6 +1761,10 @@ public class DisguiseUtilities { | ||||
|     } | ||||
|  | ||||
|     public static String[] splitNewLine(String string) { | ||||
|         if (string.contains("\n")) { | ||||
|             return string.split("\n"); | ||||
|         } | ||||
|  | ||||
|         Pattern regex = Pattern.compile("\\\\+n"); | ||||
|         Matcher result = regex.matcher(string); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user