Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.

Fix parsing for BOM character #239

Merged
merged 3 commits into from
May 29, 2019
Merged

Conversation

OlegRakovich
Copy link
Contributor

From nodejs documentation:

0 is returned if target is the same as buf

Source: https://nodejs.org/api/buffer.html#buffer_buf_compare_target_targetstart_targetend_sourcestart_sourceend

@wdavidw
Copy link
Member

wdavidw commented May 29, 2019

Could you please add a unit test which is fixed by your proposal?

@OlegRakovich
Copy link
Contributor Author

@wdavidw Sure. I added this unit test, it should be red on master.

@wdavidw wdavidw merged commit 8cedaef into adaltas:master May 29, 2019
@wdavidw
Copy link
Member

wdavidw commented May 29, 2019

Thank you very much @OlegRakovitch

@wdavidw
Copy link
Member

wdavidw commented May 29, 2019

Version 4.4.2 is published with your fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants