We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This algorithm returns incorrect result if search pattern is partially matched before reaching a full match. It fails the following test case:
const assert = require("assert").strict; const bindexOf = require("bindexof"); const a = Buffer.from([0x01, 0x01, 0x02]); const b = Buffer.from([0x01, 0x02]); assert.equal(1, bindexOf(a, b));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This algorithm returns incorrect result if search pattern is partially matched before reaching a full match.
It fails the following test case:
The text was updated successfully, but these errors were encountered: