-
-
Notifications
You must be signed in to change notification settings - Fork 707
Open
Description
Describe the bug
When processing front matter of UTF-8 with BOM files first ---
gets deleted.
Version of yq: 4.45.4
Operating system: linux
Installed via: binary release
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
Create file with BOM
printf '\xEF\xBB\xBF---\ntitle: Test\n---\n' > test_with_bom.md
Value of file is:
cat test_with_bom.md
---
title: Test
---
yq deleted first line:
$ yq --front-matter=process test_with_bom.md
title: Test
---
Command
The command you ran:
yq --front-matter=process test_with_bom.md
Actual behavior
title: Test
---
Expected behavior
---
title: Test
---