Skip to content

Commit

Permalink
Ignore BOM in input
Browse files Browse the repository at this point in the history
  • Loading branch information
physikerwelt committed Dec 16, 2021
1 parent 068f515 commit 872acdc
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 void compareWithResource(InputStream refStream, Double maxPoints, @Suppre
public void compareWithResource(InputStream refStream, Double maxPoints, Class clazz, Boolean detailedFeedback) {
try {
feedback("check that the file is a valid csv file");
List list = new CsvToBeanBuilder(new StringReader(currentFileContent))
List list = new CsvToBeanBuilder(new StringReader(currentFileContent.replace("\uFEFF", "")))
.withIgnoreLeadingWhiteSpace(true)
.withType(clazz)
.build()
Expand Down

0 comments on commit 872acdc

Please sign in to comment.