Skip to content

Commit

Permalink
changed from System.lineSeparator() to "(\n|\r\n)" to cover both unix…
Browse files Browse the repository at this point in the history
… and windows
  • Loading branch information
patrikcerbak authored and judovana committed Oct 26, 2023
1 parent ca3b70c commit fc0c6dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public List<ComparatorLinksGroup> getMatchedComparatorLinksGroups() {
public String createComparatorLinkUrl(String comparatorUrl, LinkToComparator ltc) {
StringBuilder url = new StringBuilder();

for (String arg : ltc.getComparatorArguments().split(System.lineSeparator())) {
for (String arg : ltc.getComparatorArguments().split("(\\n|\\r\\n)")) {
url.append(parseQueryToText(ltc.getSpliterator(), arg));
url.append(" ");
}
Expand Down

0 comments on commit fc0c6dc

Please sign in to comment.