Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
fix: fix newline issue in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 17, 2022
1 parent 81ef133 commit 6f4136a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,7 +43,7 @@ public static String generateBatchInsertSql(String table, List<Map<String, Strin
}

sb.append(valuesBuf.substring(1));
return sb.toString().replaceAll("\\n", "");
return sb.toString().replaceAll(System.lineSeparator(), "");
}

public static String generateWhere(Map<String, String> keys) {
Expand Down

0 comments on commit 6f4136a

Please sign in to comment.