Skip to content

Commit

Permalink
Use replace for non regular expression replace
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobaccan authored and slawekjaranowski committed Aug 8, 2022
1 parent 8c8dce6 commit 5a86896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java
Expand Up @@ -499,7 +499,7 @@ protected void writeStringToFile( String data, File file, String encoding )
{
if (System.getProperty("os.name").contains("Windows"))
{
data = data.replaceAll("\n","\r\n");
data = data.replace("\n","\r\n");
}
byte[] binaryData;

Expand Down

0 comments on commit 5a86896

Please sign in to comment.