Skip to content

Commit 04cebe4

Browse files
committed
A StringUtils with new dosToUnix method
1 parent 23c29ae commit 04cebe4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package io.github.fvarrui.javapackager.utils;
2+
3+
public class StringUtils {
4+
5+
public static String dosToUnix(String input) {
6+
return input.replaceAll("\\r\\n", "\n").replaceAll("\\r", "\n");
7+
}
8+
9+
}

0 commit comments

Comments
 (0)