Skip to content

Commit

Permalink
Merge pull request jbake-org#347 from jonbullock/fix-issue-257
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbullock authored May 2, 2017
2 parents 0f7b6c6 + 696dda1 commit 0d55672
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/org/jbake/parser/MarkupEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,13 @@ private void processHeader(Configuration config, List<String> contents, final Ma
continue;
}

String key = parts[0].trim();
String utf8BOM = "\uFEFF";
String key;
if (parts[0].contains(utf8BOM)) {
key = parts[0].trim().replace(utf8BOM, "");
} else {
key = parts[0].trim();
}
String value = parts[1].trim();

if (key.equalsIgnoreCase(Crawler.Attributes.DATE)) {
Expand Down

0 comments on commit 0d55672

Please sign in to comment.