Skip to content

Commit

Permalink
Update Utils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Dec 26, 2023
1 parent b1c2608 commit 2591ad2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/burp/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,12 @@ public static String isCommandExists(String cmd) {
* @return
*/
public static List<String> textToLines(String input){
String[] lines = input.split("(\r\n|\r|\n)", -1);
List<String> result = new ArrayList<String>();
if (input ==null) {
return result;
}

String[] lines = input.split("(\r\n|\r|\n)", -1);
for(String line: lines) {
line = line.trim();
if (!line.equalsIgnoreCase("")) {
Expand Down

0 comments on commit 2591ad2

Please sign in to comment.