Skip to content

Commit

Permalink
rename for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Nov 28, 2024
1 parent 6879090 commit 6b2ec10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/streamsearch/sbmh.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ SBMH.prototype._sbmh_feed = function (data) {
const needle = this._needle
const needleLength = needle.length
const needleLastCharIndex = needleLength - 1
const lastNeedleChar = needle[needleLastCharIndex]
const needleLastChar = needle[needleLastCharIndex]

// Positive: points to a position in `data`
// pos == 3 points to data[3]
Expand All @@ -116,7 +116,7 @@ SBMH.prototype._sbmh_feed = function (data) {
ch = this._sbmh_lookup_char(data, pos + needleLastCharIndex)

if (
ch === lastNeedleChar &&
ch === needleLastChar &&
this._sbmh_memcmp(data, pos, needleLastCharIndex)
) {
this._lookbehind_size = 0
Expand Down

0 comments on commit 6b2ec10

Please sign in to comment.