Skip to content

Commit

Permalink
Merge pull request #14 from tabularelf/master
Browse files Browse the repository at this point in the history
Added BOM header check for snap_from_csv
  • Loading branch information
JujuAdams authored Sep 5, 2021
2 parents 96b771e + ea34671 commit ad4e7f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/snap_from_csv/snap_from_csv.gml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ function snap_from_csv()
var _word_start = 0;
var _in_string = false;
var _string_cell = false;

if ((buffer_get_size(_buffer) >= 4) && (buffer_peek(_buffer, 0, buffer_u32) & 0xFFFFFF == 0xBFBBEF)) {
buffer_seek(_buffer, buffer_seek_start, 3);
_size -= 3;
_word_start += 3;
}

repeat(_size)
{
Expand Down

0 comments on commit ad4e7f7

Please sign in to comment.