detect utf8 bom and ignore if present

This commit is contained in:
alisdair sullivan 2012-04-04 20:46:41 -07:00
parent 5e87f02fc5
commit e69ac5f371
3 changed files with 29 additions and 1 deletions

1
priv/test_cases/bom.json Normal file
View file

@ -0,0 +1 @@
[]

3
priv/test_cases/bom.test Normal file
View file

@ -0,0 +1,3 @@
{name, "byte order mark"}.
{jsx, [start_array, end_array, end_json]}.
{json, "bom.json"}.